org.apache.chemistry.opencmis.server.impl
Class CallContextImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.impl.CallContextImpl
All Implemented Interfaces:
CallContext

public class CallContextImpl
extends java.lang.Object
implements CallContext

Implementation of the CallContext interface.


Field Summary
 
Fields inherited from interface org.apache.chemistry.opencmis.commons.server.CallContext
BINDING_ATOMPUB, BINDING_BROWSER, BINDING_LOCAL, BINDING_WEBSERVICES, LENGTH, LOCALE, LOCALE_ISO3166_COUNTRY, LOCALE_ISO639_LANGUAGE, OFFSET, PASSWORD, REPOSITORY_ID, SERVLET_CONTEXT, USERNAME
 
Constructor Summary
CallContextImpl(java.lang.String binding, java.lang.String repositoryId, boolean objectInfoRequired)
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Returns context data by key.
 java.lang.String getBinding()
          Returns the binding.
 java.math.BigInteger getLength()
          Returns the content length if set, null otherwise
 java.lang.String getLocale()
          Returns the locale.
 java.math.BigInteger getOffset()
          Returns the content offset if set, null otherwise
 java.lang.String getPassword()
          Returns the password.
 java.lang.String getRepositoryId()
          Returns the repository id.
 java.lang.String getUsername()
          Returns the user name.
 boolean isObjectInfoRequired()
          Returns if true object infos can improve the performance.
 void put(java.lang.String key, java.lang.Object value)
          Adds a parameter.
 java.lang.Object remove(java.lang.String key)
          Removes a parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallContextImpl

public CallContextImpl(java.lang.String binding,
                       java.lang.String repositoryId,
                       boolean objectInfoRequired)
Method Detail

getBinding

public java.lang.String getBinding()
Description copied from interface: CallContext
Returns the binding. Usually it returns CallContext.BINDING_ATOMPUB, CallContext.BINDING_WEBSERVICES, CallContext.BINDING_BROWSER or CallContext.BINDING_LOCAL.

Specified by:
getBinding in interface CallContext

isObjectInfoRequired

public boolean isObjectInfoRequired()
Description copied from interface: CallContext
Returns if true object infos can improve the performance.

Specified by:
isObjectInfoRequired in interface CallContext

get

public java.lang.Object get(java.lang.String key)
Description copied from interface: CallContext
Returns context data by key.

Specified by:
get in interface CallContext
Parameters:
key - the key
Returns:
the data if the key is valid, null otherwise

getRepositoryId

public java.lang.String getRepositoryId()
Description copied from interface: CallContext
Returns the repository id.

Specified by:
getRepositoryId in interface CallContext

getUsername

public java.lang.String getUsername()
Description copied from interface: CallContext
Returns the user name.

Specified by:
getUsername in interface CallContext

getPassword

public java.lang.String getPassword()
Description copied from interface: CallContext
Returns the password.

Specified by:
getPassword in interface CallContext

getLocale

public java.lang.String getLocale()
Description copied from interface: CallContext
Returns the locale.

Specified by:
getLocale in interface CallContext

getOffset

public java.math.BigInteger getOffset()
Description copied from interface: CallContext
Returns the content offset if set, null otherwise

Specified by:
getOffset in interface CallContext

getLength

public java.math.BigInteger getLength()
Description copied from interface: CallContext
Returns the content length if set, null otherwise

Specified by:
getLength in interface CallContext

put

public void put(java.lang.String key,
                java.lang.Object value)
Adds a parameter.


remove

public java.lang.Object remove(java.lang.String key)
Removes a parameter.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.