public class CallContextImpl extends Object implements CallContext
CallContext interface.BINDING_ATOMPUB, BINDING_BROWSER, BINDING_LOCAL, BINDING_WEBSERVICES, 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, TEMP_DIR, USERNAME| Constructor and Description |
|---|
CallContextImpl(String binding,
String repositoryId,
boolean objectInfoRequired) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Returns context data by key.
|
String |
getBinding()
Returns the binding.
|
BigInteger |
getLength()
Returns the content length if set,
null otherwise |
String |
getLocale()
Returns the locale.
|
long |
getMaxContentSize()
Returns the may size of content.
|
int |
getMemoryThreshold()
Returns the memory threshold.
|
BigInteger |
getOffset()
Returns the content offset if set,
null otherwise |
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 a parameter.
|
Object |
remove(String key)
Removes a parameter.
|
public 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 Object get(String key)
CallContextget in interface CallContextkey - the keynull otherwisepublic String getRepositoryId()
CallContextgetRepositoryId in interface CallContextpublic String getUsername()
CallContextgetUsername in interface CallContextpublic String getPassword()
CallContextgetPassword in interface CallContextpublic String getLocale()
CallContextgetLocale in interface CallContextpublic BigInteger getOffset()
CallContextnull otherwisegetOffset in interface CallContextpublic BigInteger getLength()
CallContextnull otherwisegetLength in interface CallContextpublic File getTempDirectory()
CallContextgetTempDirectory in interface CallContextpublic int getMemoryThreshold()
CallContextgetMemoryThreshold in interface CallContextpublic long getMaxContentSize()
CallContextgetMaxContentSize in interface CallContextCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.