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.Builderbuilderprotected DateServicedateServiceprotected com.google.common.base.Supplier<String>defaultRegionprotected booleaninFaultprotected booleaninLaunchSpecificationprotected booleaninStatusprotected booleaninTagSetprotected LaunchSpecificationHandlerlaunchSpecificationHandlerprotected TagSetHandlertagSetHandler
-
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 voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String name, String qName)SpotInstanceRequestgetResult()voidstartElement(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:
getResultin classParseSax.HandlerWithResult<SpotInstanceRequest>
-
startElement
public void startElement(String uri, String name, String qName, Attributes attrs) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String name, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
-