public static interface SessionKeepAlive.Preference
Modifier and Type | Method and Description |
---|---|
boolean |
getEnabled()
Return whether session keep alive is enabled or not.
|
int |
getExpiration()
Return the session expiration in seconds.
|
int |
getMinimumExpiration()
Return Minimum expiration time in seconds.
|
SessionKeepAlive.Refresher |
getRefresher()
Return the type of the refresher.
|
void |
setEnabled(boolean enabled)
Sets whether the session keep-alive is enabled or not.
|
void |
setExpiration(int expiration)
Set the session expiration.
|
void |
setMinimumExpiration(int minSE)
Minimum expiration possible.
|
void |
setRefresher(SessionKeepAlive.Refresher refresher)
Set the refresher type.
|
void setRefresher(SessionKeepAlive.Refresher refresher)
refresher
- Type of the refresher.IllegalArgumentException
- If the argument conflicts
with the rules specified by RFC 4028.IllegalStateException
- If session keep alive is not enabled.SessionKeepAlive.Refresher getRefresher()
void setMinimumExpiration(int minSE)
minSE
- Minimim session expiration time in seconds.IllegalArgumentException
- If the argument conflicts
with the rules specified by RFC 4028.IllegalStateException
- If session keep alive is not enabled.int getMinimumExpiration()
void setExpiration(int expiration)
expiration
- Session expiration in seconds.IllegalArgumentException
- If the argument conflicts
with the rules specified by RFC 4028.IllegalStateException
- If session keep alive is not enabled.int getExpiration()
void setEnabled(boolean enabled)
enabled
- Set the enabled flag.boolean getEnabled()
Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.