Package org.jclouds.ec2.xml
Class DescribeSecurityGroupsResponseHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<Set<SecurityGroup>>
-
- org.jclouds.ec2.xml.DescribeSecurityGroupsResponseHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Set<SecurityGroup>>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class DescribeSecurityGroupsResponseHandler extends ParseSax.HandlerForGeneratedRequestWithResult<Set<SecurityGroup>>
Parses: DescribeSecurityGroupsResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/"
-
-
Field Summary
Fields Modifier and Type Field Description protected int
itemDepth
-
Constructor Summary
Constructors Constructor Description DescribeSecurityGroupsResponseHandler(SecurityGroupHandler securityGroupHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String name, String qName)
protected void
endItem(String uri, String name, String qName)
Set<SecurityGroup>
getResult()
ParseSax.HandlerForGeneratedRequestWithResult<Set<SecurityGroup>>
setContext(HttpRequest request)
void
startElement(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
-
-
-
-
Constructor Detail
-
DescribeSecurityGroupsResponseHandler
@Inject public DescribeSecurityGroupsResponseHandler(SecurityGroupHandler securityGroupHandler)
-
-
Method Detail
-
setContext
public ParseSax.HandlerForGeneratedRequestWithResult<Set<SecurityGroup>> setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseSax.HandlerWithResult<Set<SecurityGroup>>>
- Overrides:
setContext
in classParseSax.HandlerForGeneratedRequestWithResult<Set<SecurityGroup>>
-
getResult
public Set<SecurityGroup> getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<Set<SecurityGroup>>
-
startElement
public void startElement(String url, String name, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String name, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in 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:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-