Package org.jclouds.aws.ec2.xml
Class AWSDescribeInstancesResponseHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<T>
-
- org.jclouds.aws.ec2.xml.BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
- org.jclouds.aws.ec2.xml.AWSDescribeInstancesResponseHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Set<Reservation<? extends RunningInstance>>>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class AWSDescribeInstancesResponseHandler extends BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
Parses the following XML document: DescribeImagesResponse xmlns="http:- See Also:
-
-
-
Field Summary
-
Fields inherited from class org.jclouds.aws.ec2.xml.BaseAWSReservationHandler
builder, currentText, dateService, defaultRegion, itemDepth, logger
-
-
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 boolean
endOfInstanceItem()
protected boolean
endOfReservationItem()
Set<Reservation<? extends RunningInstance>>
getResult()
protected void
inItem()
void
startElement(String uri, String name, String qName, Attributes attrs)
-
Methods inherited from class org.jclouds.aws.ec2.xml.BaseAWSReservationHandler
newBuilder, newReservation, refineBuilderBeforeAddingInstance
-
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
-
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String name, String qName, Attributes attrs) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
getResult
public Set<Reservation<? extends RunningInstance>> getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<Set<Reservation<? extends RunningInstance>>>
-
endOfReservationItem
protected boolean endOfReservationItem()
-
inItem
protected void inItem()
- Overrides:
inItem
in classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endOfInstanceItem
protected boolean endOfInstanceItem()
- Specified by:
endOfInstanceItem
in classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
-