org.jclouds.vcloud.director.v1_5.domain
Class Session

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.Session

public class Session
extends Object

Returns a representation of the current session that can serve as a single entry point to the system, as it provides user, admin, and extension (sysadmin) entry links depending on the privileges of the current user.

Author:
Adrian Cole

Nested Class Summary
static class Session.Builder
           
 
Field Summary
static String MEDIA_TYPE
           
 
Method Summary
static Session.Builder builder()
           
 boolean equals(Object o)
           
 URI getHref()
           
 Set<Link> getLinks()
           
 String getOrg()
           
 String getUser()
           
 int hashCode()
           
 Session.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MEDIA_TYPE

public static final String MEDIA_TYPE
See Also:
Constant Field Values
Method Detail

builder

public static Session.Builder builder()

toBuilder

public Session.Builder toBuilder()

getLinks

public Set<Link> getLinks()

getUser

public String getUser()
Returns:
the user's login name.

getOrg

public String getOrg()
Returns:
is the name of an organization of which the user is a member

getHref

public URI getHref()
Returns:
a reference to the current session

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.