public class EHCacheSPStateManager extends Object implements SPStateManager
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TTL |
static String |
REQUEST_CACHE_KEY |
static String |
RESPONSE_CACHE_KEY |
Constructor and Description |
---|
EHCacheSPStateManager() |
EHCacheSPStateManager(Bus bus) |
EHCacheSPStateManager(String configFileURL) |
EHCacheSPStateManager(String configFileURL,
Bus bus) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ResponseState |
getResponseState(String securityContextKey) |
long |
getTTL()
Get the (default) TTL value in seconds
|
RequestState |
removeRequestState(String relayState) |
ResponseState |
removeResponseState(String securityContextKey) |
void |
setRequestState(String relayState,
RequestState state) |
void |
setResponseState(String securityContextKey,
ResponseState state) |
void |
setTTL(long newTtl)
Set a new (default) TTL value in seconds
|
public static final long DEFAULT_TTL
public static final String REQUEST_CACHE_KEY
public static final String RESPONSE_CACHE_KEY
public EHCacheSPStateManager()
public EHCacheSPStateManager(Bus bus)
public EHCacheSPStateManager(String configFileURL)
public void setTTL(long newTtl)
newTtl
- a new (default) TTL value in secondspublic long getTTL()
public ResponseState getResponseState(String securityContextKey)
getResponseState
in interface SPStateManager
public ResponseState removeResponseState(String securityContextKey)
removeResponseState
in interface SPStateManager
public void setResponseState(String securityContextKey, ResponseState state)
setResponseState
in interface SPStateManager
public void setRequestState(String relayState, RequestState state)
setRequestState
in interface SPStateManager
public RequestState removeRequestState(String relayState)
removeRequestState
in interface SPStateManager
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface SPStateManager
IOException
Apache CXF