Package org.jclouds.ec2.xml
Class DescribeImagesResponseHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<Set<Image>>
-
- org.jclouds.ec2.xml.DescribeImagesResponseHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Set<Image>>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
NovaDescribeImagesResponseHandler
public class DescribeImagesResponseHandler extends ParseSax.HandlerForGeneratedRequestWithResult<Set<Image>>
Parses the following XML document: DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/"
-
-
Constructor Summary
Constructors Constructor Description DescribeImagesResponseHandler(com.google.common.base.Supplier<String> defaultRegion, TagSetHandler tagSetHandler)
-
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)
Set<Image>
getResult()
void
startElement(String uri, String name, String qName, Attributes attrs)
-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest, setContext
-
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
-
DescribeImagesResponseHandler
@Inject public DescribeImagesResponseHandler(com.google.common.base.Supplier<String> defaultRegion, TagSetHandler tagSetHandler)
-
-
Method Detail
-
getResult
public Set<Image> getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<Set<Image>>
-
startElement
public void startElement(String uri, String name, String qName, Attributes attrs)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-