|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.api.model.ApiUserSession
public class ApiUserSession
This is the model for interactive user session information in the API.
A user may have more than one active session. Each such session will have its own session object.
Constructor Summary | |
---|---|
ApiUserSession()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Date |
getLastRequest()
The date and time of the last request received as part of this session. |
String |
getName()
The username associated with the session. |
String |
getRemoteAddr()
The remote IP address for the session. |
int |
hashCode()
|
void |
setLastRequest(Date lastRequest)
|
void |
setName(String name)
|
void |
setRemoteAddr(String remoteAddr)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ApiUserSession()
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName()
This will be the same value shown to the logged in user in the UI, which will normally be the same value they typed when logging in, but it is possible that in certain external authentication scenarios, it will differ from that value.
public void setName(String name)
public String getRemoteAddr()
This will be the remote IP address for the last request made as part of this session. It is not guaranteed to be the same IP address as was previously used, or the address used to initiate the session.
public void setRemoteAddr(String remoteAddr)
public Date getLastRequest()
This will be returned in ISO 8601 format from the REST API.
public void setLastRequest(Date lastRequest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |