org.jclouds.aws.ec2.xml
Class BaseAWSReservationHandler<T>
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<T>
- All Implemented Interfaces:
- InvocationContext<ParseSax.HandlerWithResult<T>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Direct Known Subclasses:
- AWSDescribeInstancesResponseHandler, AWSRunInstancesResponseHandler
public abstract class BaseAWSReservationHandler<T>
- extends ParseSax.HandlerForGeneratedRequestWithResult<T>
- Author:
- Adrian Cole
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 |
logger
protected Logger logger
dateService
protected final DateService dateService
defaultRegion
protected final String defaultRegion
builderProvider
protected final com.google.inject.Provider<AWSRunningInstance.Builder> builderProvider
currentText
protected StringBuilder currentText
builder
protected AWSRunningInstance.Builder builder
itemDepth
protected int itemDepth
depth
protected int depth
BaseAWSReservationHandler
@Inject
public BaseAWSReservationHandler(DateService dateService,
String defaultRegion,
com.google.inject.Provider<AWSRunningInstance.Builder> builderProvider)
startElement
public void startElement(String uri,
String localName,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String name,
String qName)
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
parseDate
protected Date parseDate()
inItem
protected void inItem()
refineBuilderBeforeAddingInstance
protected void refineBuilderBeforeAddingInstance()
endOfInstanceItem
protected abstract boolean endOfInstanceItem()
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
newReservation
protected Reservation<? extends RunningInstance> newReservation()
Copyright © 2009-2011 jclouds. All Rights Reserved.