public class OwTransientCodec extends OwCookieStoreCodec
An OwCookieStoreCodec implementation that stores
the cookies in memory.
The index name uniqueness is guaranteed per VM-instance.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwCookieStoreCodec.OwTimedCookie, OwCookieStoreCodec.OwTimedCookieValueCONFIGURATION_BOOTSTRAP_ELEMENT_NAME, CONFIGURATION_DAYS_ATTRIBUTE, CONFIGURATION_HOURS_ATTRIBUTE, CONFIGURATION_MINUTES_ATTRIBUTE, CONFIGURATION_NAME_ATTRIBUTE, CONFIGURATION_SECONDS_ATTRIBUTE, CONFIGURATION_URL_LIFE_TIME_ELEMENT, CONFIGURATION_URL_PARAMETER_ELEMENT, DEFAULT_CONFIG_URL_LIFE_TIME, DEFAULT_URL_PARAMETER_NAME| Constructor and Description |
|---|
OwTransientCodec() |
OwTransientCodec(long namesExpirationTime_p) |
OwTransientCodec(OwAlphabetCoder alphabetCder_p,
long initialNameIndex_p,
String cookieParamenterName_p,
long namesExpirationTime_p) |
OwTransientCodec(String cookieParamenterName_p,
long namesExpirationTime_p) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCookieValue(OwCookieStoreCodec.OwTimedCookieValue timedCookieValue_p)
Adds the given
OwCookieStoreCodec.OwTimedCookieValue to the cookie store |
static OwTransientCodec |
createConfiguredCodec(OwMainAppContext context_p)
Creates a new
OwTransientCodec based on the bootstrap configuration that is
accessed through the given OwMainAppContext.The expected XML structure of the URLParameterCodec tag element is the following : URLLifeTimeTime - tag Configures the amount of time an encoded URL parameter map is valid. |
protected List |
createTimedCookieCollectList()
Hook method that returns a list of
OwCookieStoreCodec.OwTimedCookies to be collected. |
protected OwCookieStoreCodec.OwTimedCookieValue |
getCookieValue(String cookieName_p) |
long |
getNextUnqiueNameIndex()
Get the next available unique index.
|
String |
peekAtNextURLParameter()
Retrieve the next unique URL parameter value without incrementing the
global unique counter.
|
protected void |
remove(OwCookieStoreCodec.OwTimedCookie timedCookie_p)
Removes the given
OwCookieStoreCodec.OwTimedCookie from cookie storage. |
canDecode, collectExpiredNames, createCookie, decode, encode, loadUrlLifeTimeConfig, loadUrlParameterConfigpublic OwTransientCodec()
public OwTransientCodec(long namesExpirationTime_p)
public OwTransientCodec(String cookieParamenterName_p, long namesExpirationTime_p)
public OwTransientCodec(OwAlphabetCoder alphabetCder_p, long initialNameIndex_p, String cookieParamenterName_p, long namesExpirationTime_p)
public static OwTransientCodec createConfiguredCodec(OwMainAppContext context_p) throws OwInvalidOperationException
OwTransientCodec based on the bootstrap configuration that is
accessed through the given OwMainAppContext.context_p - OwInvalidOperationExceptionprotected void addCookieValue(OwCookieStoreCodec.OwTimedCookieValue timedCookieValue_p)
OwCookieStoreCodecOwCookieStoreCodec.OwTimedCookieValue to the cookie storeaddCookieValue in class OwCookieStoreCodecprotected List createTimedCookieCollectList()
OwCookieStoreCodecOwCookieStoreCodec.OwTimedCookies to be collected.createTimedCookieCollectList in class OwCookieStoreCodecList of OwCookieStoreCodec.OwTimedCookieOwCookieStoreCodec.collectExpiredNames()protected OwCookieStoreCodec.OwTimedCookieValue getCookieValue(String cookieName_p)
getCookieValue in class OwCookieStoreCodecOwCookieStoreCodec.OwTimedCookieValue for the given cookieprotected void remove(OwCookieStoreCodec.OwTimedCookie timedCookie_p)
OwCookieStoreCodecOwCookieStoreCodec.OwTimedCookie from cookie storage.remove in class OwCookieStoreCodecpublic final String peekAtNextURLParameter() throws OwException
OwExceptionpublic long getNextUnqiueNameIndex()
OwParameterMapCodecCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.