Package org.jclouds.s3.xml
Class LocationConstraintHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<String>
org.jclouds.s3.xml.LocationConstraintHandler
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<String>>,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Parses the response from Amazon S3 GET Bucket Location
Region is the document we expect to parse.
-
Constructor Summary
ConstructorsConstructorDescriptionLocationConstraintHandler(com.google.common.cache.LoadingCache<String, com.google.common.base.Optional<String>> bucketToRegion) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String name, String qName) static Stringparses the value expected in xml documents from the S3 service.=setContext(HttpRequest request) Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequestMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, 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
-
Constructor Details
-
LocationConstraintHandler
-
-
Method Details
-
getResult
- Specified by:
getResultin classParseSax.HandlerWithResult<String>
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler
-
setContext
- Specified by:
setContextin interfaceInvocationContext<ParseSax.HandlerWithResult<String>>- Overrides:
setContextin classParseSax.HandlerWithResult<String>
-
fromValue
parses the value expected in xml documents from the S3 service.=US_STANDARDis returned as "" xml documents. -
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-