org.apache.chemistry.opencmis.inmemory
Class DummyCallContext

java.lang.Object
  extended by org.apache.chemistry.opencmis.inmemory.DummyCallContext
All Implemented Interfaces:
CallContext

public class DummyCallContext
extends Object
implements CallContext


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
DummyCallContext()
           
 
Method Summary
 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.
 BigInteger getOffset()
          Returns the content offset if set, null otherwise
 String getPassword()
          Returns the password.
 String getRepositoryId()
          Returns the repository id.
 String getUsername()
          Returns the user name.
 boolean isObjectInfoRequired()
          Returns if true object infos can improve the performance.
 void put(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyCallContext

public DummyCallContext()
Method Detail

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 Object get(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

getBinding

public 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

getRepositoryId

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

Specified by:
getRepositoryId in interface CallContext

getLocale

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

Specified by:
getLocale in interface CallContext

getOffset

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

Specified by:
getOffset in interface CallContext

getLength

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

Specified by:
getLength in interface CallContext

getPassword

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

Specified by:
getPassword in interface CallContext

getUsername

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

Specified by:
getUsername in interface CallContext

put

public void put(String key,
                String value)


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