org.javaswift.joss.command.shared.identity.access
Class AccessBasic

java.lang.Object
  extended by org.javaswift.joss.command.shared.identity.access.AccessBasic
All Implemented Interfaces:
Access

public class AccessBasic
extends Object
implements Access


Constructor Summary
AccessBasic()
           
 
Method Summary
 String getInternalURL()
          The internal URL to access resources with.
 String getPublicURL()
          The public URL of a resource.
 String getTempUrlPrefix(TempUrlHashPrefixSource tempUrlHashPrefixSource)
          Returns the first part of the object path in a TempURL.
 String getToken()
          The security token to pass to all secure ObjectStore calls.
 boolean isTenantSupplied()
          Ascertains whether tenant ID and/or name were supplied.
 void setPreferredRegion(String preferredRegion)
          The ObjectStore holds multiple regions.
 void setToken(String token)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessBasic

public AccessBasic()
Method Detail

setUrl

public void setUrl(String url)

setToken

public void setToken(String token)

setPreferredRegion

public void setPreferredRegion(String preferredRegion)
Description copied from interface: Access
The ObjectStore holds multiple regions. If you state a preference, it will choose that region (if available). You will see the result in getting the internal or public URL.

Specified by:
setPreferredRegion in interface Access
Parameters:
preferredRegion - the region where you want to access the resources

getToken

public String getToken()
Description copied from interface: Access
The security token to pass to all secure ObjectStore calls. Note that this token has a validity for a period of 24 hours. After that, you require a new token.

Specified by:
getToken in interface Access
Returns:
the token

getInternalURL

public String getInternalURL()
Description copied from interface: Access
The internal URL to access resources with. This works on both public and private containers.

Specified by:
getInternalURL in interface Access
Returns:
internal URL

getPublicURL

public String getPublicURL()
Description copied from interface: Access
The public URL of a resource. This is the URL you might want to display to the outside world, expect that you may replace the domain with your own.

Specified by:
getPublicURL in interface Access
Returns:
public URL

isTenantSupplied

public boolean isTenantSupplied()
Description copied from interface: Access
Ascertains whether tenant ID and/or name were supplied.

Specified by:
isTenantSupplied in interface Access
Returns:
true if tenant ID and/or name were supplied before the authentication call

getTempUrlPrefix

public String getTempUrlPrefix(TempUrlHashPrefixSource tempUrlHashPrefixSource)
Description copied from interface: Access
Returns the first part of the object path in a TempURL. This is determined by the URL that serves as the source; public, internal or admin

Specified by:
getTempUrlPrefix in interface Access
Parameters:
tempUrlHashPrefixSource - the source URL to server as the basis for the prefix
Returns:
temp URL object path prefix


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