Package org.jclouds.ec2.xml
Class SecurityGroupHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>
-
- org.jclouds.ec2.xml.SecurityGroupHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<SecurityGroup>>,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class SecurityGroupHandler extends ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>
-
-
Field Summary
Fields Modifier and Type Field Description protected SecurityGroup.Builder<?>builderprotected StringBuildercurrentTextprotected com.google.common.base.Supplier<String>defaultRegionprotected booleaninIpPermissionsprotected IpPermissionHandleripPermissionHandlerprotected intitemDepthprotected Stringregion
-
Constructor Summary
Constructors Constructor Description SecurityGroupHandler(IpPermissionHandler ipPermissionHandler, com.google.common.base.Supplier<String> defaultRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecurityGroup.Builder<?>builder()voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String name, String qName)protected voidendItem(String uri, String name, String qName)SecurityGroupgetResult()ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>setContext(HttpRequest request)voidstartElement(String url, String name, String qName, Attributes attributes)-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
ipPermissionHandler
protected final IpPermissionHandler ipPermissionHandler
-
defaultRegion
protected final com.google.common.base.Supplier<String> defaultRegion
-
currentText
protected StringBuilder currentText
-
builder
protected SecurityGroup.Builder<?> builder
-
inIpPermissions
protected boolean inIpPermissions
-
itemDepth
protected int itemDepth
-
region
protected String region
-
-
Constructor Detail
-
SecurityGroupHandler
@Inject public SecurityGroupHandler(IpPermissionHandler ipPermissionHandler, com.google.common.base.Supplier<String> defaultRegion)
-
-
Method Detail
-
builder
protected SecurityGroup.Builder<?> builder()
-
setContext
public ParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup> setContext(HttpRequest request)
- Specified by:
setContextin interfaceInvocationContext<ParseSax.HandlerWithResult<SecurityGroup>>- Overrides:
setContextin classParseSax.HandlerForGeneratedRequestWithResult<SecurityGroup>
-
getResult
public SecurityGroup getResult()
- Specified by:
getResultin classParseSax.HandlerWithResult<SecurityGroup>
-
startElement
public void startElement(String url, String name, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String name, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
endItem
protected void endItem(String uri, String name, String qName) throws SAXException
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
-