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.OwTimedCookieValue
CONFIGURATION_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.OwTimedCookie s 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, loadUrlParameterConfig
public 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
- OwInvalidOperationException
protected void addCookieValue(OwCookieStoreCodec.OwTimedCookieValue timedCookieValue_p)
OwCookieStoreCodec
OwCookieStoreCodec.OwTimedCookieValue
to the cookie storeaddCookieValue
in class OwCookieStoreCodec
protected List createTimedCookieCollectList()
OwCookieStoreCodec
OwCookieStoreCodec.OwTimedCookie
s to be collected.createTimedCookieCollectList
in class OwCookieStoreCodec
List
of OwCookieStoreCodec.OwTimedCookie
OwCookieStoreCodec.collectExpiredNames()
protected OwCookieStoreCodec.OwTimedCookieValue getCookieValue(String cookieName_p)
getCookieValue
in class OwCookieStoreCodec
OwCookieStoreCodec.OwTimedCookieValue
for the given cookieprotected void remove(OwCookieStoreCodec.OwTimedCookie timedCookie_p)
OwCookieStoreCodec
OwCookieStoreCodec.OwTimedCookie
from cookie storage.remove
in class OwCookieStoreCodec
public final String peekAtNextURLParameter() throws OwException
OwException
public long getNextUnqiueNameIndex()
OwParameterMapCodec
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.