org.apache.chemistry.opencmis.commons.server
Interface CallContext


public interface CallContext

An object implementing this interface holds context data of the current call.


Field Summary
static String BINDING_ATOMPUB
           
static String BINDING_BROWSER
           
static String BINDING_LOCAL
           
static String BINDING_WEBSERVICES
           
static String HTTP_SERVLET_REQUEST
           
static String HTTP_SERVLET_RESPONSE
           
static String LENGTH
           
static String LOCALE
           
static String LOCALE_ISO3166_COUNTRY
           
static String LOCALE_ISO639_LANGUAGE
           
static String MEMORY_THRESHOLD
           
static String OFFSET
           
static String PASSWORD
           
static String REPOSITORY_ID
           
static String SERVLET_CONTEXT
           
static String TEMP_DIR
           
static String USERNAME
           
 
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.
 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.
 

Field Detail

BINDING_ATOMPUB

static final String BINDING_ATOMPUB
See Also:
Constant Field Values

BINDING_WEBSERVICES

static final String BINDING_WEBSERVICES
See Also:
Constant Field Values

BINDING_BROWSER

static final String BINDING_BROWSER
See Also:
Constant Field Values

BINDING_LOCAL

static final String BINDING_LOCAL
See Also:
Constant Field Values

REPOSITORY_ID

static final String REPOSITORY_ID
See Also:
Constant Field Values

USERNAME

static final String USERNAME
See Also:
Constant Field Values

PASSWORD

static final String PASSWORD
See Also:
Constant Field Values

LOCALE

static final String LOCALE
See Also:
Constant Field Values

OFFSET

static final String OFFSET
See Also:
Constant Field Values

LENGTH

static final String LENGTH
See Also:
Constant Field Values

LOCALE_ISO639_LANGUAGE

static final String LOCALE_ISO639_LANGUAGE
See Also:
Constant Field Values

LOCALE_ISO3166_COUNTRY

static final String LOCALE_ISO3166_COUNTRY
See Also:
Constant Field Values

SERVLET_CONTEXT

static final String SERVLET_CONTEXT
See Also:
Constant Field Values

HTTP_SERVLET_REQUEST

static final String HTTP_SERVLET_REQUEST
See Also:
Constant Field Values

HTTP_SERVLET_RESPONSE

static final String HTTP_SERVLET_RESPONSE
See Also:
Constant Field Values

TEMP_DIR

static final String TEMP_DIR
See Also:
Constant Field Values

MEMORY_THRESHOLD

static final String MEMORY_THRESHOLD
See Also:
Constant Field Values
Method Detail

getBinding

String getBinding()
Returns the binding. Usually it returns BINDING_ATOMPUB, BINDING_WEBSERVICES, BINDING_BROWSER or BINDING_LOCAL.


isObjectInfoRequired

boolean isObjectInfoRequired()
Returns if true object infos can improve the performance.


get

Object get(String key)
Returns context data by key.

Parameters:
key - the key
Returns:
the data if the key is valid, null otherwise

getRepositoryId

String getRepositoryId()
Returns the repository id.


getUsername

String getUsername()
Returns the user name.


getPassword

String getPassword()
Returns the password.


getLocale

String getLocale()
Returns the locale.


getOffset

BigInteger getOffset()
Returns the content offset if set, null otherwise


getLength

BigInteger getLength()
Returns the content length if set, null otherwise


getTempDirectory

File getTempDirectory()
Returns the temp directory.


getMemoryThreshold

int getMemoryThreshold()
Returns the memory threshold.



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