public interface SessionExpiresHeader extends Header, Parameters
The syntax of the Session-Expires header field is:
Session-Expires = ('Session-Expires' / 'x') HCOLON delta-seconds *(SEMI se-params) se-params = refresher-param / generic-param refresher-param = 'refresher' EQUAL ('uas' / 'uac')
Modifier and Type | Field and Description |
---|---|
static String |
COMPACT_NAME |
static String |
NAME |
Modifier and Type | Method and Description |
---|---|
int |
getInterval()
Gets the session refresh interval requested by this Session-Expires header.
|
SessionRefresher |
getRefresher()
Get the refresher parameter, which determines the party responsible for
sending session refresh requests (none, uac or uas).
|
void |
setInterval(int interval)
Set the session refresh interval time.
|
void |
setRefresher(SessionRefresher refresher)
Set the refresher for this session.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
static final String COMPACT_NAME
int getInterval()
void setInterval(int interval) throws IllegalArgumentException
interval
- the requested session refresh interval.IllegalArgumentException
- if interval
is less than 90 seconds,
the minimum refresh interval permitted by the spec.SessionRefresher getRefresher()
SessionRefresher.UAC
, SessionRefresher.UAS
or
SessionRefresher.NONE
(no refresher specified).void setRefresher(SessionRefresher refresher)
refresher
- the party who will perform session refresh requests for the
session, either SessionRefresher.UAC
, SessionRefresher.UAS
or
SessionRefresher.NONE
(no refresher specified).