Package org.jclouds.ec2.xml
Class DescribeInstancesResponseHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<T>
-
- org.jclouds.ec2.xml.BaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
- org.jclouds.ec2.xml.DescribeInstancesResponseHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Set<Reservation<? extends RunningInstance>>>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class DescribeInstancesResponseHandler extends BaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
Parses the following XML document: DescribeImagesResponse xmlns="http:- See Also:
-
-
-
Field Summary
-
Fields inherited from class org.jclouds.ec2.xml.BaseReservationHandler
builder, currentText, dateService, defaultRegion, inGroupSet, inInstancesSet, inProductCodes, itemDepth
-
-
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.ec2.xml.BaseReservationHandler
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)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classBaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classBaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classBaseReservationHandler<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 classBaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
endOfInstanceItem
protected boolean endOfInstanceItem()
- Overrides:
endOfInstanceItem
in classBaseReservationHandler<Set<Reservation<? extends RunningInstance>>>
-
-