org.jclouds.aws.ec2.xml
Class LaunchSpecificationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
          extended by org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<LaunchSpecification>
              extended by org.jclouds.aws.ec2.xml.LaunchSpecificationHandler
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<LaunchSpecification>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class LaunchSpecificationHandler
extends ParseSax.HandlerForGeneratedRequestWithResult<LaunchSpecification>

Author:
Adrian Cole

Field Summary
protected  BlockDeviceMapping.Builder blockDeviceMappingBuilder
           
protected  LaunchSpecification.Builder builder
           
protected  StringBuilder currentText
           
protected  DateService dateService
           
protected  String defaultRegion
           
protected  Logger logger
           
 
Constructor Summary
LaunchSpecificationHandler(DateService dateService, String defaultRegion, LaunchSpecification.Builder builder, BlockDeviceMapping.Builder blockDeviceMappingBuilder)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger

dateService

protected final DateService dateService

defaultRegion

protected final String defaultRegion

builder

protected final LaunchSpecification.Builder builder

blockDeviceMappingBuilder

protected final BlockDeviceMapping.Builder blockDeviceMappingBuilder

currentText

protected StringBuilder currentText
Constructor Detail

LaunchSpecificationHandler

@Inject
public LaunchSpecificationHandler(DateService dateService,
                                         String defaultRegion,
                                         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 interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(String uri,
                       String name,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

getResult

public LaunchSpecification getResult()
Specified by:
getResult in class ParseSax.HandlerWithResult<LaunchSpecification>


Copyright © 2009-2011 jclouds. All Rights Reserved.