|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nci.common.search.session.SecureSessionImpl
public class SecureSessionImpl
| Field Summary | |
|---|---|
protected boolean |
_active
|
protected SecureSessionManager |
_mgr
|
protected java.lang.String |
_sessionId
|
protected long |
_startTime
|
| Constructor Summary | |
|---|---|
SecureSessionImpl()
|
|
SecureSessionImpl(SecureSessionImpl toCopy)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this object. |
void |
direct(java.lang.String searchLocation)
|
void |
end()
Invalidates the session. |
void |
extend()
Extends the current session by SecureSessionManager.DEFAULT_SESSION_LENGTH milliseconds. |
java.lang.String |
getSessionId()
Gets the internal session ID for this session. |
long |
getStartTime()
Gets the time in milliseconds when the session was started or the last time refresh was called. |
long |
getTimeToLive()
Gets the time in milliseconds until this session will be invalidated. |
void |
refresh()
Sets the startTime to the current time. |
void |
setSessionId(java.lang.String id)
Sets the internal ID of this session. |
boolean |
start(java.lang.String username,
java.lang.String password)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _sessionId
protected long _startTime
protected transient SecureSessionManager _mgr
protected boolean _active
| Constructor Detail |
|---|
public SecureSessionImpl()
public SecureSessionImpl(SecureSessionImpl toCopy)
impl - | Method Detail |
|---|
public boolean start(java.lang.String username,
java.lang.String password)
start in interface SecureSessionpublic java.lang.String getSessionId()
SecureSession
getSessionId in interface SecureSession
public long getTimeToLive()
throws SessionException
SecureSession
getTimeToLive in interface SecureSessionSessionException
public void extend()
throws SessionException
SecureSession
extend in interface SecureSessionSessionExceptionpublic void refresh()
SecureSession
refresh in interface SecureSession
public void end()
throws SessionException
SecureSession
end in interface SecureSessionSessionExceptionpublic long getStartTime()
SecureSession
getStartTime in interface SecureSessionpublic java.lang.Object clone()
SecureSession
clone in interface SecureSessionclone in class java.lang.Objectpublic void setSessionId(java.lang.String id)
SecureSession
setSessionId in interface SecureSessionpublic void direct(java.lang.String searchLocation)
direct in interface Directable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||