|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.jclouds.http.functions.ParseSax.HandlerWithResult<String>
org.jclouds.s3.xml.LocationConstraintHandler
public class LocationConstraintHandler
Parses the response from Amazon S3 GET Bucket Location
Region is the document we expect to parse.
| Constructor Summary | |
|---|---|
LocationConstraintHandler(Map<String,String> bucketToRegion)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult |
|---|
getRequest |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public LocationConstraintHandler(Map<String,String> bucketToRegion)
| Method Detail |
|---|
public String getResult()
getResult in class ParseSax.HandlerWithResult<String>
public void endElement(String uri,
String name,
String qName)
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic 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 ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||