org.jclouds.aws.ec2.xml
Class AWSDescribeInstancesResponseHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
          extended by org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<T>
              extended by org.jclouds.aws.ec2.xml.BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
                  extended by 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:

Author:
Adrian Cole
See Also:
Field Summary
 
Fields inherited from class org.jclouds.aws.ec2.xml.BaseAWSReservationHandler
builder, builderProvider, currentText, dateService, defaultRegion, depth, itemDepth, logger
 
Method Summary
 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 localName, String qName, Attributes attrs)
           
 
Methods inherited from class org.jclouds.aws.ec2.xml.BaseAWSReservationHandler
characters, newReservation, parseDate, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>
Throws:
SAXException

endElement

public void endElement(String uri,
                       String name,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>

getResult

public Set<Reservation<? extends RunningInstance>> getResult()
Specified by:
getResult in class ParseSax.HandlerWithResult<Set<Reservation<? extends RunningInstance>>>

endOfReservationItem

protected boolean endOfReservationItem()

inItem

protected void inItem()
Overrides:
inItem in class BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>

endOfInstanceItem

protected boolean endOfInstanceItem()
Specified by:
endOfInstanceItem in class BaseAWSReservationHandler<Set<Reservation<? extends RunningInstance>>>


Copyright © 2009-2012 jclouds. All Rights Reserved.