Package org.jclouds.aws.ec2.xml
Class LaunchSpecificationHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<LaunchSpecification>
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
FieldsModifier and TypeFieldDescriptionprotected final BlockDeviceMapping.Builder
protected final LaunchSpecification.Builder
protected StringBuilder
protected Logger
-
Constructor Summary
ConstructorsConstructorDescriptionLaunchSpecificationHandler
(LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) protected String
void
endElement
(String uri, String name, String qName) 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
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
-
builder
-
blockDeviceMappingBuilder
-
currentText
-
-
Constructor Details
-
LaunchSpecificationHandler
@Inject public LaunchSpecificationHandler(LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder)
-
-
Method Details
-
currentOrNull
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
- 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
- Specified by:
getResult
in classParseSax.HandlerWithResult<LaunchSpecification>
-