public class MutableCallContextWrapper extends Object implements MutableCallContext
MutableCallContext
interface that can be subclassed by developers wishing to change, add, or
hide call context data.
If the provided CallContext object implements the
MutableCallContext interface, all get(String),
put(String, Object), and remove(String) calls are forwarded
to this call context object. If this CallContext object does not
implement the MutableCallContext interface, the key-value pairs are
stored here and hide the values of the provided CallContext object.
That is, the first MutableCallContext object in the chain of
MutableCallContextWrapper objects manages the data.BINDING_ATOMPUB, BINDING_BROWSER, BINDING_LOCAL, BINDING_WEBSERVICES, CMIS_VERSION, ENCRYPT_TEMP_FILE, HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, LENGTH, LOCALE, LOCALE_ISO3166_COUNTRY, LOCALE_ISO639_LANGUAGE, MAX_CONTENT_SIZE, MEMORY_THRESHOLD, OFFSET, PASSWORD, REPOSITORY_ID, SERVLET_CONTEXT, STREAM_FACTORY, TEMP_DIR, USERNAME| Constructor and Description |
|---|
MutableCallContextWrapper(CallContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encryptTempFiles()
Returns if temp files should be encrypted.
|
Object |
get(String key)
Returns context data by key.
|
String |
getBinding()
Returns the binding.
|
CmisVersion |
getCmisVersion()
Returns the CMIS version.
|
BigInteger |
getLength()
Returns the content length.
|
String |
getLocale()
Returns the locale.
|
long |
getMaxContentSize()
Returns the max size of content.
|
int |
getMemoryThreshold()
Returns the memory threshold.
|
BigInteger |
getOffset()
Returns the content offset.
|
String |
getPassword()
Returns the password.
|
String |
getRepositoryId()
Returns the repository ID.
|
File |
getTempDirectory()
Returns the temp directory.
|
String |
getUsername()
Returns the user name.
|
boolean |
isObjectInfoRequired()
Returns if
true object infos can improve the performance. |
void |
put(String key,
Object value)
Adds or replaces an entry
|
Object |
remove(String key)
Removes a parameter.
|
public MutableCallContextWrapper(CallContext context)
public Object get(String key)
CallContextget in interface CallContextkey - the keynull otherwisepublic void put(String key, Object value)
MutableCallContextput in interface MutableCallContextkey - the entry keyvalue - the entry objectpublic Object remove(String key)
MutableCallContextremove in interface MutableCallContextkey - the entry keynull if the
entry didn't existpublic String getBinding()
CallContextCallContext.BINDING_ATOMPUB,
CallContext.BINDING_WEBSERVICES,
CallContext.BINDING_BROWSER or CallContext.BINDING_LOCAL.getBinding in interface CallContextpublic boolean isObjectInfoRequired()
CallContexttrue object infos can improve the performance.isObjectInfoRequired in interface CallContextpublic CmisVersion getCmisVersion()
CallContextgetCmisVersion in interface CallContextnullpublic String getRepositoryId()
CallContextgetRepositoryId in interface CallContextnull if it's a repository info callpublic String getUsername()
CallContextgetUsername in interface CallContextpublic String getPassword()
CallContextgetPassword in interface CallContextpublic String getLocale()
CallContextgetLocale in interface CallContextpublic BigInteger getOffset()
CallContextgetOffset in interface CallContextnull otherwisepublic BigInteger getLength()
CallContextgetLength in interface CallContextnull otherwisepublic File getTempDirectory()
CallContextgetTempDirectory in interface CallContextpublic boolean encryptTempFiles()
CallContextencryptTempFiles in interface CallContexttrue if temp files should be encrypted, false
otherwisepublic int getMemoryThreshold()
CallContextgetMemoryThreshold in interface CallContextpublic long getMaxContentSize()
CallContextgetMaxContentSize in interface CallContextCopyright © 2009–2016 The Apache Software Foundation. All rights reserved.