Package org.jclouds.ec2.xml
Class SnapshotHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<Snapshot>
-
- org.jclouds.ec2.xml.SnapshotHandler
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Snapshot>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class SnapshotHandler extends ParseSax.HandlerForGeneratedRequestWithResult<Snapshot>
-
-
Field Summary
Fields Modifier and Type Field Description protected DateService
dateService
protected com.google.common.base.Supplier<String>
defaultRegion
-
Constructor Summary
Constructors Constructor Description SnapshotHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String name, String qName)
Snapshot
getResult()
-
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, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
dateService
protected final DateService dateService
-
defaultRegion
protected final com.google.common.base.Supplier<String> defaultRegion
-
-
Constructor Detail
-
SnapshotHandler
@Inject public SnapshotHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion)
-
-
Method Detail
-
getResult
public Snapshot getResult()
- Specified by:
getResult
in classParseSax.HandlerWithResult<Snapshot>
-
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
-
-