public class LocationConstraintHandler extends ParseSax.HandlerWithResult<String>
Constructor and Description |
---|
LocationConstraintHandler(com.google.common.cache.LoadingCache<String,com.google.common.base.Optional<String>> bucketToRegion) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String name,
String qName) |
static String |
fromValue(String v)
parses the value expected in xml documents from the S3 service.=
US_STANDARD is returned as "" xml documents. |
String |
getResult() |
LocationConstraintHandler |
setContext(HttpRequest request) |
getRequest
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public String getResult()
getResult
in class ParseSax.HandlerWithResult<String>
public void endElement(String uri, String name, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public LocationConstraintHandler setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseSax.HandlerWithResult<String>>
setContext
in class ParseSax.HandlerWithResult<String>
public static String fromValue(String v)
US_STANDARD
is returned as "" xml documents.public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.