Package 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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AWSRunningInstance.Builder
protected StringBuilder
protected final DateService
protected final com.google.common.base.Supplier
<String> protected int
protected Logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseAWSReservationHandler
(DateService dateService, com.google.common.base.Supplier<String> defaultRegion) -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String name, String qName) protected abstract boolean
protected void
inItem()
protected AWSRunningInstance.Builder
protected Reservation
<? extends RunningInstance> protected void
void
startElement
(String uri, String localName, String qName, Attributes attrs) Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest, setContext
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getResult
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
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
logger
-
dateService
-
defaultRegion
-
builder
-
currentText
-
itemDepth
protected int itemDepth
-
-
Constructor Details
-
BaseAWSReservationHandler
protected BaseAWSReservationHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion)
-
-
Method Details
-
newBuilder
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
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 interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
newReservation
-