|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.util.paramcodec.OwCookieStoreCodec
com.wewebu.ow.server.util.paramcodec.OwTransientCodec
public class OwTransientCodec
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wewebu.ow.server.util.paramcodec.OwCookieStoreCodec |
---|
OwCookieStoreCodec.OwTimedCookie, OwCookieStoreCodec.OwTimedCookieValue |
Field Summary |
---|
Fields inherited from class com.wewebu.ow.server.util.paramcodec.OwCookieStoreCodec |
---|
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 Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.wewebu.ow.server.util.paramcodec.OwCookieStoreCodec |
---|
canDecode, collectExpiredNames, createCookie, decode, encode, loadUrlLifeTimeConfig, loadUrlParameterConfig |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
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 store
addCookieValue
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |