Package org.jclouds.aws.ec2.xml
Class SpotInstanceHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<SpotInstanceRequest>
-
- org.jclouds.aws.ec2.xml.SpotInstanceHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<SpotInstanceRequest>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class SpotInstanceHandler extends ParseSax.HandlerForGeneratedRequestWithResult<SpotInstanceRequest>
-
-
Field Summary
Fields Modifier and Type Field Description protected SpotInstanceRequest.Builder
builder
protected DateService
dateService
protected com.google.common.base.Supplier<String>
defaultRegion
protected boolean
inFault
protected boolean
inLaunchSpecification
protected boolean
inStatus
protected boolean
inTagSet
protected LaunchSpecificationHandler
launchSpecificationHandler
protected TagSetHandler
tagSetHandler
-
Constructor Summary
Constructors Constructor Description SpotInstanceHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion, LaunchSpecificationHandler launchSpecificationHandler, TagSetHandler tagSetHandler, SpotInstanceRequest.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String name, String qName)
SpotInstanceRequest
getResult()
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.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
defaultRegion
protected final com.google.common.base.Supplier<String> defaultRegion
-
builder
protected final SpotInstanceRequest.Builder builder
-
inFault
protected boolean inFault
-
inStatus
protected boolean inStatus
-
inLaunchSpecification
protected boolean inLaunchSpecification
-
launchSpecificationHandler
protected final LaunchSpecificationHandler launchSpecificationHandler
-
inTagSet
protected boolean inTagSet
-
tagSetHandler
protected final TagSetHandler tagSetHandler
-
-
Constructor Detail
-
SpotInstanceHandler
@Inject public SpotInstanceHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion, LaunchSpecificationHandler launchSpecificationHandler, TagSetHandler tagSetHandler, SpotInstanceRequest.Builder builder)
-
-
Method Detail
-
getResult
public SpotInstanceRequest getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<SpotInstanceRequest>
-
startElement
public void startElement(String uri, String name, String qName, Attributes attrs) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String name, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-