Package org.jclouds.aws.ec2.xml
Class LaunchSpecificationHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<LaunchSpecification>
-
- org.jclouds.aws.ec2.xml.LaunchSpecificationHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<LaunchSpecification>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class LaunchSpecificationHandler extends ParseSax.HandlerForGeneratedRequestWithResult<LaunchSpecification>
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockDeviceMapping.Builder
blockDeviceMappingBuilder
protected LaunchSpecification.Builder
builder
protected StringBuilder
currentText
protected Logger
logger
-
Constructor Summary
Constructors Constructor Description LaunchSpecificationHandler(LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
protected String
currentOrNull()
void
endElement(String uri, String name, String qName)
LaunchSpecification
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
-
logger
protected Logger logger
-
builder
protected final LaunchSpecification.Builder builder
-
blockDeviceMappingBuilder
protected final BlockDeviceMapping.Builder blockDeviceMappingBuilder
-
currentText
protected StringBuilder currentText
-
-
Constructor Detail
-
LaunchSpecificationHandler
@Inject public LaunchSpecificationHandler(LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder)
-
-
Method Detail
-
currentOrNull
protected String currentOrNull()
-
startElement
public void startElement(String uri, String name, String qName, Attributes attrs)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
public void endElement(String uri, String name, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
getResult
public LaunchSpecification getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<LaunchSpecification>
-
-