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 voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String name, String qName)protected booleanendOfInstanceItem()protected booleanendOfReservationItem()Set<Reservation<? extends RunningInstance>>getResult()protected voidinItem()voidstartElement(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:
startElementin interfaceContentHandler- Overrides:
startElementin classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
getResult
public Set<Reservation<? extends RunningInstance>> getResult()
- Specified by:
getResultin classParseSax.HandlerWithResult<Set<Reservation<? extends RunningInstance>>>
-
endOfReservationItem
protected boolean endOfReservationItem()
-
inItem
protected void inItem()
- Overrides:
inItemin classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endOfInstanceItem
protected boolean endOfInstanceItem()
- Specified by:
endOfInstanceItemin classBaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
-