|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsecurity.session.ProxiedSession
public class ProxiedSession
Simple Session implementation that immediately delegates all corresponding calls to an
underlying proxied session instance.
Session calls
and perform additional logic.
| Field Summary | |
|---|---|
protected Session |
proxy
The proxied instance |
| Constructor Summary | |
|---|---|
ProxiedSession(Session target)
Constructs an instance that proxies the specified target. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(Object key)
Immediately delegates to the underlying proxied session. |
Collection<Object> |
getAttributeKeys()
Immediately delegates to the underlying proxied session. |
InetAddress |
getHostAddress()
Immediately delegates to the underlying proxied session. |
Serializable |
getId()
Immediately delegates to the underlying proxied session. |
Date |
getLastAccessTime()
Immediately delegates to the underlying proxied session. |
Date |
getStartTimestamp()
Immediately delegates to the underlying proxied session. |
long |
getTimeout()
Immediately delegates to the underlying proxied session. |
Object |
removeAttribute(Object key)
Immediately delegates to the underlying proxied session. |
void |
setAttribute(Object key,
Object value)
Immediately delegates to the underlying proxied session. |
void |
setTimeout(long maxIdleTimeInMillis)
Immediately delegates to the underlying proxied session. |
void |
stop()
Immediately delegates to the underlying proxied session. |
void |
touch()
Immediately delegates to the underlying proxied session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Session proxy
| Constructor Detail |
|---|
public ProxiedSession(Session target)
target. Subclasses may access this
target via the protected final 'proxy' attribute, i.e. this.proxy.
target - the specified target Session to proxy.| Method Detail |
|---|
public Serializable getId()
getId in interface Sessionpublic Date getStartTimestamp()
getStartTimestamp in interface Sessionpublic Date getLastAccessTime()
getLastAccessTime in interface SessionSession.touch()
public long getTimeout()
throws InvalidSessionException
getTimeout in interface SessionInvalidSessionException - if the session has been stopped or expired prior to calling this method.
public void setTimeout(long maxIdleTimeInMillis)
throws InvalidSessionException
setTimeout in interface SessionmaxIdleTimeInMillis - the time in milliseconds that the session may remain idle before expiring.
InvalidSessionException - if the session has been stopped or expired prior to calling this method.public InetAddress getHostAddress()
getHostAddress in interface SessionSessionFactory.start(java.net.InetAddress)
public void touch()
throws InvalidSessionException
touch in interface SessionInvalidSessionException - if this session has stopped or expired prior to calling
this method.
public void stop()
throws InvalidSessionException
stop in interface SessionInvalidSessionException - if this session has stopped or expired prior to calling this method.
public Collection<Object> getAttributeKeys()
throws InvalidSessionException
getAttributeKeys in interface SessionInvalidSessionException - if this session has stopped or expired prior to calling this method.
public Object getAttribute(Object key)
throws InvalidSessionException
getAttribute in interface Sessionkey - the unique name of the object bound to this session
InvalidSessionException - if this session has stopped or expired prior to calling
this method.
public void setAttribute(Object key,
Object value)
throws InvalidSessionException
setAttribute in interface Sessionkey - the name under which the value object will be bound in this sessionvalue - the object to bind in this session.
InvalidSessionException - if this session has stopped or expired prior to calling
this method.
public Object removeAttribute(Object key)
throws InvalidSessionException
removeAttribute in interface Sessionkey - the name uniquely identifying the object to remove
InvalidSessionException - if this session has stopped or expired prior to calling
this method.
|
JSecurity | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||