org.opencms.cmis
Class CmsCmisCallContext

java.lang.Object
  extended by 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, HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, LENGTH, LOCALE, LOCALE_ISO3166_COUNTRY, LOCALE_ISO639_LANGUAGE, MEMORY_THRESHOLD, OFFSET, PASSWORD, REPOSITORY_ID, SERVLET_CONTEXT, TEMP_DIR, USERNAME
 
Constructor Summary
CmsCmisCallContext(org.apache.chemistry.opencmis.commons.server.CallContext originalContext, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfo)
          Creates a new instance.
 
Method Summary
 java.lang.Object get(java.lang.String attr)
           
 java.lang.String getBinding()
           
 java.math.BigInteger getLength()
           
 java.lang.String getLocale()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 wrap
objectInfo - the object info handler to use
Method Detail

get

public java.lang.Object get(java.lang.String attr)
Specified by:
get in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.get(java.lang.String)

getBinding

public java.lang.String getBinding()
Specified by:
getBinding in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getBinding()

getLength

public java.math.BigInteger getLength()
Specified by:
getLength in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getLength()

getLocale

public java.lang.String getLocale()
Specified by:
getLocale in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getLocale()

getMemoryThreshold

public int getMemoryThreshold()
Specified by:
getMemoryThreshold in interface org.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 interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getOffset()

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getPassword()

getRepositoryId

public java.lang.String getRepositoryId()
Specified by:
getRepositoryId in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getRepositoryId()

getTempDirectory

public java.io.File getTempDirectory()
Specified by:
getTempDirectory in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getTempDirectory()

getUsername

public java.lang.String getUsername()
Specified by:
getUsername in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.getUsername()

isObjectInfoRequired

public boolean isObjectInfoRequired()
Specified by:
isObjectInfoRequired in interface org.apache.chemistry.opencmis.commons.server.CallContext
See Also:
CallContext.isObjectInfoRequired()