org.javaswift.joss.headers.container
Class ContainerRights

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.container.ContainerRights

public class ContainerRights
extends Header

Allows the rights change of a container to and from public/private


Field Summary
static String PUBLIC_CONTAINER
           
static String X_CONTAINER_READ
           
 
Constructor Summary
ContainerRights(boolean publicContainer)
           
 
Method Summary
static ContainerRights fromResponse(org.apache.http.HttpResponse response)
           
 String getHeaderName()
          Returns the header name that must be set in the request.
 String getHeaderValue()
          Returns the value that must be set in the request.
 boolean isPublic()
           
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_CONTAINER_READ

public static final String X_CONTAINER_READ
See Also:
Constant Field Values

PUBLIC_CONTAINER

public static final String PUBLIC_CONTAINER
See Also:
Constant Field Values
Constructor Detail

ContainerRights

public ContainerRights(boolean publicContainer)
Method Detail

isPublic

public boolean isPublic()

getHeaderValue

public String getHeaderValue()
Description copied from class: Header
Returns the value that must be set in the request. Eg, "bytes: 4-12"

Specified by:
getHeaderValue in class Header
Returns:
the value for the request header

getHeaderName

public String getHeaderName()
Description copied from class: Header
Returns the header name that must be set in the request. Eg, "Range"

Specified by:
getHeaderName in class Header
Returns:
the name for the request header

fromResponse

public static ContainerRights fromResponse(org.apache.http.HttpResponse response)


Copyright © 2012-2014 42 BV. All Rights Reserved.