Package 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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RunningInstance.Builder
<?> protected StringBuilder
protected final DateService
protected final com.google.common.base.Supplier
<String> protected boolean
protected boolean
protected boolean
protected int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseReservationHandler
(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 boolean
protected void
inItem()
protected RunningInstance.Builder
<?> protected Reservation
<? extends RunningInstance> protected void
void
startElement
(String uri, String name, 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
-
dateService
-
defaultRegion
-
builder
-
currentText
-
itemDepth
protected int itemDepth -
inInstancesSet
protected boolean inInstancesSet -
inProductCodes
protected boolean inProductCodes -
inGroupSet
protected boolean inGroupSet
-
-
Constructor Details
-
BaseReservationHandler
protected BaseReservationHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion)
-
-
Method Details
-
newBuilder
-
inItem
protected void inItem() -
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
refineBuilderBeforeAddingInstance
protected void refineBuilderBeforeAddingInstance() -
endOfInstanceItem
protected boolean endOfInstanceItem() -
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
newReservation
-