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.Builderprotected final LaunchSpecification.Builderprotected StringBuilderprotected Logger -
Constructor Summary
ConstructorsConstructorDescriptionLaunchSpecificationHandler(LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) protected StringvoidendElement(String uri, String name, String qName) voidstartElement(String uri, String name, String qName, Attributes attrs) Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest, setContextMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
getResult
- Specified by:
getResultin classParseSax.HandlerWithResult<LaunchSpecification>
-