Package org.opencms.cmis
Class CmsCmisCallContext
- java.lang.Object
-
- org.opencms.cmis.CmsCmisCallContext
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.server.CallContext
public class CmsCmisCallContext extends java.lang.Object implements org.apache.chemistry.opencmis.commons.server.CallContext
Call context implementation which delegates most methods to a wrapped call context, but also provides additional functionality.
-
-
Field Summary
-
Fields inherited from interface org.apache.chemistry.opencmis.commons.server.CallContext
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 Summary
Constructors Constructor Description CmsCmisCallContext(org.apache.chemistry.opencmis.commons.server.CallContext originalContext, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfo)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
encryptTempFiles()
java.lang.Object
get(java.lang.String attr)
java.lang.String
getBinding()
org.apache.chemistry.opencmis.commons.enums.CmisVersion
getCmisVersion()
java.math.BigInteger
getLength()
java.lang.String
getLocale()
long
getMaxContentSize()
int
getMemoryThreshold()
org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler
getObjectInfoHandler()
The object info handler to use.java.math.BigInteger
getOffset()
java.lang.String
getPassword()
java.lang.String
getRepositoryId()
java.io.File
getTempDirectory()
java.lang.String
getUsername()
boolean
isObjectInfoRequired()
-
-
-
Constructor Detail
-
CmsCmisCallContext
public CmsCmisCallContext(org.apache.chemistry.opencmis.commons.server.CallContext originalContext, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfo)
Creates a new instance.- Parameters:
originalContext
- the context to wrapobjectInfo
- the object info handler to use
-
-
Method Detail
-
encryptTempFiles
public boolean encryptTempFiles()
- Specified by:
encryptTempFiles
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
-
get
public java.lang.Object get(java.lang.String attr)
- Specified by:
get
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.get(java.lang.String)
-
getBinding
public java.lang.String getBinding()
- Specified by:
getBinding
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getBinding()
-
getCmisVersion
public org.apache.chemistry.opencmis.commons.enums.CmisVersion getCmisVersion()
- Specified by:
getCmisVersion
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
-
getLength
public java.math.BigInteger getLength()
- Specified by:
getLength
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getLength()
-
getLocale
public java.lang.String getLocale()
- Specified by:
getLocale
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getLocale()
-
getMaxContentSize
public long getMaxContentSize()
- Specified by:
getMaxContentSize
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
-
getMemoryThreshold
public int getMemoryThreshold()
- Specified by:
getMemoryThreshold
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getMemoryThreshold()
-
getObjectInfoHandler
public org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler getObjectInfoHandler()
The object info handler to use.- Returns:
- the object info handler
-
getOffset
public java.math.BigInteger getOffset()
- Specified by:
getOffset
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getOffset()
-
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getPassword()
-
getRepositoryId
public java.lang.String getRepositoryId()
- Specified by:
getRepositoryId
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getRepositoryId()
-
getTempDirectory
public java.io.File getTempDirectory()
- Specified by:
getTempDirectory
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getTempDirectory()
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.getUsername()
-
isObjectInfoRequired
public boolean isObjectInfoRequired()
- Specified by:
isObjectInfoRequired
in interfaceorg.apache.chemistry.opencmis.commons.server.CallContext
- See Also:
CallContext.isObjectInfoRequired()
-
-