Package org.jclouds.ec2.xml
Class CreateVolumeResponseHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<Volume>
org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<Volume>
org.jclouds.ec2.xml.CreateVolumeResponseHandler
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<Volume>>,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
NovaCreateVolumeResponseHandler
public class CreateVolumeResponseHandler
extends ParseSax.HandlerForGeneratedRequestWithResult<Volume>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<Attachment> protected Attachment.Statusprotected Dateprotected Stringprotected Dateprotected StringBuilderprotected final DateServiceprotected final com.google.common.base.Supplier<String> protected Stringprotected booleanprotected Stringprotected booleanprotected Stringprotected Integerprotected Stringprotected final com.google.common.base.Supplier<Map<String, com.google.common.base.Supplier<Set<String>>>> protected intprotected Stringprotected Stringprotected Volume.Statusprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreateVolumeResponseHandler(DateService dateService, com.google.common.base.Supplier<String> defaultRegion, com.google.common.base.Supplier<Map<String, com.google.common.base.Supplier<Set<String>>>> regionToZonesSupplier, com.google.common.base.Supplier<Set<String>> zonesSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String name, String qName) static StringfindAvailabilityZoneInArgsOrNull(GeneratedHttpRequest gRequest, Set<String> zones) setContext(HttpRequest request) voidstartElement(String uri, String name, String qName, Attributes attrs) Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequestMethods 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
-
dateService
-
defaultRegion
-
regionToZonesSupplier
-
zonesSupplier
-
currentText
-
id
-
size
protected int size -
snapshotId
-
availabilityZone
-
volumeStatus
-
createTime
-
attachments
-
volumeId
-
instanceId
-
device
-
attachmentStatus
-
attachTime
-
volumeType
-
iops
-
encrypted
protected boolean encrypted -
inAttachmentSet
protected boolean inAttachmentSet -
region
-
-
Constructor Details
-
CreateVolumeResponseHandler
-
-
Method Details
-
getResult
- Specified by:
getResultin classParseSax.HandlerWithResult<Volume>
-
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
-
setContext
- Specified by:
setContextin interfaceInvocationContext<ParseSax.HandlerWithResult<Volume>>- Overrides:
setContextin classParseSax.HandlerForGeneratedRequestWithResult<Volume>
-
findAvailabilityZoneInArgsOrNull
public static String findAvailabilityZoneInArgsOrNull(GeneratedHttpRequest gRequest, Set<String> zones)
-