public abstract class BaseAWSReservationHandler<T> extends ParseSax.HandlerForGeneratedRequestWithResult<T>
Modifier and Type | Field and Description |
---|---|
protected AWSRunningInstance.Builder |
builder |
protected StringBuilder |
currentText |
protected DateService |
dateService |
protected com.google.common.base.Supplier<String> |
defaultRegion |
protected int |
itemDepth |
protected Logger |
logger |
Constructor and Description |
---|
BaseAWSReservationHandler(DateService dateService,
com.google.common.base.Supplier<String> defaultRegion) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
protected abstract boolean |
endOfInstanceItem() |
protected void |
inItem() |
protected AWSRunningInstance.Builder |
newBuilder() |
protected Reservation<? extends RunningInstance> |
newReservation() |
protected void |
refineBuilderBeforeAddingInstance() |
void |
startElement(String uri,
String localName,
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 AWSRunningInstance.Builder builder
protected StringBuilder currentText
protected int itemDepth
@Inject public BaseAWSReservationHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion)
protected AWSRunningInstance.Builder newBuilder()
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String name, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
protected void inItem()
protected void refineBuilderBeforeAddingInstance()
protected abstract 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-2016 The Apache Software Foundation. All Rights Reserved.