public abstract class BaseReservationHandler<T> extends ParseSax.HandlerForGeneratedRequestWithResult<T>
Modifier and Type | Field and Description |
---|---|
protected RunningInstance.Builder |
builder |
protected com.google.inject.Provider<RunningInstance.Builder> |
builderProvider |
protected StringBuilder |
currentText |
protected DateService |
dateService |
protected com.google.common.base.Supplier<String> |
defaultRegion |
protected int |
itemDepth |
protected Logger |
logger |
Constructor and Description |
---|
BaseReservationHandler(DateService dateService,
com.google.common.base.Supplier<String> defaultRegion,
com.google.inject.Provider<RunningInstance.Builder> builderProvider) |
Modifier and Type | Method and Description |
---|---|
protected RunningInstance.Builder |
builder() |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
protected boolean |
endOfInstanceItem() |
protected void |
inItem() |
protected Reservation<? extends RunningInstance> |
newReservation() |
protected Date |
parseDate() |
protected void |
refineBuilderBeforeAddingInstance() |
void |
startElement(String uri,
String name,
String qName,
Attributes attrs) |
getRequest, setContext
getResult
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected Logger logger
protected final DateService dateService
protected final com.google.common.base.Supplier<String> defaultRegion
protected final com.google.inject.Provider<RunningInstance.Builder> builderProvider
protected StringBuilder currentText
protected RunningInstance.Builder builder
protected int itemDepth
@Inject public BaseReservationHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion, com.google.inject.Provider<RunningInstance.Builder> builderProvider)
public void startElement(String uri, String name, String qName, Attributes attrs)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void endElement(String uri, String name, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
protected Date parseDate()
protected void inItem()
protected void refineBuilderBeforeAddingInstance()
protected RunningInstance.Builder builder()
protected boolean endOfInstanceItem()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
protected Reservation<? extends RunningInstance> newReservation()
Copyright © 2009-2012 jclouds. All Rights Reserved.