org.jclouds.ec2.xml
Class BaseReservationHandler<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.ec2.xml.BaseReservationHandler<T>
- All Implemented Interfaces:
- InvocationContext<ParseSax.HandlerWithResult<T>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- Direct Known Subclasses:
- DescribeInstancesResponseHandler, RunInstancesResponseHandler
public abstract class BaseReservationHandler<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<RunningInstance.Builder> builderProvider
currentText
protected StringBuilder currentText
builder
protected RunningInstance.Builder builder
itemDepth
protected int itemDepth
BaseReservationHandler
@Inject
public BaseReservationHandler(DateService dateService,
String defaultRegion,
com.google.inject.Provider<RunningInstance.Builder> builderProvider)
startElement
public void startElement(String uri,
String name,
String qName,
Attributes attrs)
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
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()
builder
protected RunningInstance.Builder builder()
endOfInstanceItem
protected 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.