net.noderunner.amazon.s3
Class LocationResponse

java.lang.Object
  extended by net.noderunner.amazon.s3.Response
      extended by net.noderunner.amazon.s3.LocationResponse

public class LocationResponse
extends Response

A Response object returned from AWSAuthConnection.getBucketLocation(). Parses the response XML and exposes the location constraint via the getLocation() method.


Method Summary
 java.lang.String getLocation()
          Report the location-constraint for a bucket.
 java.lang.String toString()
          Returns a string representation.
 
Methods inherited from class net.noderunner.amazon.s3.Response
assertOk, getContentLength, getHeaderField, getHeaders, getResponseCode, getResponseMessage, isNotFound, isOk, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLocation

public java.lang.String getLocation()
Report the location-constraint for a bucket. A value of null indicates an error; the empty string indicates no constraint; and any other value is an actual location constraint value.


toString

public java.lang.String toString()
Description copied from class: Response
Returns a string representation.

Overrides:
toString in class Response


Copyright © 2010. All Rights Reserved.