public class CallContextImpl extends Object implements MutableCallContext
CallContext
interface.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 |
---|
CallContextImpl(String binding,
CmisVersion cmisVersion,
String repositoryId,
javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CmisServiceFactory factory,
ThresholdOutputStreamFactory streamFactory) |
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 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 or replaces an entry
|
Object |
remove(String key)
Removes a parameter.
|
void |
setAcceptLanguage(String acceptLanguageHeader) |
void |
setRange(String rangeHeader) |
public CallContextImpl(String binding, CmisVersion cmisVersion, String repositoryId, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, CmisServiceFactory factory, ThresholdOutputStreamFactory streamFactory)
public void setRange(String rangeHeader)
public void setAcceptLanguage(String acceptLanguageHeader)
public String getBinding()
CallContext
CallContext.BINDING_ATOMPUB
,
CallContext.BINDING_WEBSERVICES
,
CallContext.BINDING_BROWSER
or CallContext.BINDING_LOCAL
.getBinding
in interface CallContext
public boolean isObjectInfoRequired()
CallContext
true
object infos can improve the performance.isObjectInfoRequired
in interface CallContext
public Object get(String key)
CallContext
get
in interface CallContext
key
- the keynull
otherwisepublic CmisVersion getCmisVersion()
CallContext
getCmisVersion
in interface CallContext
public String getRepositoryId()
CallContext
getRepositoryId
in interface CallContext
public String getUsername()
CallContext
getUsername
in interface CallContext
public String getPassword()
CallContext
getPassword
in interface CallContext
public String getLocale()
CallContext
getLocale
in interface CallContext
public BigInteger getOffset()
CallContext
null
otherwisegetOffset
in interface CallContext
public BigInteger getLength()
CallContext
null
otherwisegetLength
in interface CallContext
public File getTempDirectory()
CallContext
getTempDirectory
in interface CallContext
public boolean encryptTempFiles()
CallContext
encryptTempFiles
in interface CallContext
public int getMemoryThreshold()
CallContext
getMemoryThreshold
in interface CallContext
public long getMaxContentSize()
CallContext
getMaxContentSize
in interface CallContext
public final void put(String key, Object value)
MutableCallContext
put
in interface MutableCallContext
key
- the entry keyvalue
- the entry objectpublic final Object remove(String key)
MutableCallContext
remove
in interface MutableCallContext
key
- the entry keynull
if the
entry didn't existCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.