Class LocationConstraintHandler

  • All Implemented Interfaces:
    org.jclouds.rest.InvocationContext<org.jclouds.http.functions.ParseSax.HandlerWithResult<String>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

    public class LocationConstraintHandler
    extends org.jclouds.http.functions.ParseSax.HandlerWithResult<String>
    Parses the response from Amazon S3 GET Bucket Location

    Region is the document we expect to parse.

    • Constructor Detail

      • LocationConstraintHandler

        @Inject
        public LocationConstraintHandler​(com.google.common.cache.LoadingCache<String,​com.google.common.base.Optional<String>> bucketToRegion)
    • Method Detail

      • getResult

        public String getResult()
        Specified by:
        getResult in class org.jclouds.http.functions.ParseSax.HandlerWithResult<String>
      • setContext

        public LocationConstraintHandler setContext​(org.jclouds.http.HttpRequest request)
        Specified by:
        setContext in interface org.jclouds.rest.InvocationContext<org.jclouds.http.functions.ParseSax.HandlerWithResult<String>>
        Overrides:
        setContext in class org.jclouds.http.functions.ParseSax.HandlerWithResult<String>
      • fromValue

        public static String fromValue​(String v)
        parses the value expected in xml documents from the S3 service.=

        US_STANDARD is returned as "" xml documents.