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 java.lang.String BINDING_ATOMPUB
           
static java.lang.String BINDING_BROWSER
           
static java.lang.String BINDING_LOCAL
           
static java.lang.String BINDING_WEBSERVICES
           
static java.lang.String LENGTH
           
static java.lang.String LOCALE
           
static java.lang.String LOCALE_ISO3166_COUNTRY
           
static java.lang.String LOCALE_ISO639_LANGUAGE
           
static java.lang.String OFFSET
           
static java.lang.String PASSWORD
           
static java.lang.String REPOSITORY_ID
           
static java.lang.String SERVLET_CONTEXT
           
static java.lang.String USERNAME
           
 
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.
 

Field Detail

BINDING_ATOMPUB

static final java.lang.String BINDING_ATOMPUB
See Also:
Constant Field Values

BINDING_WEBSERVICES

static final java.lang.String BINDING_WEBSERVICES
See Also:
Constant Field Values

BINDING_BROWSER

static final java.lang.String BINDING_BROWSER
See Also:
Constant Field Values

BINDING_LOCAL

static final java.lang.String BINDING_LOCAL
See Also:
Constant Field Values

REPOSITORY_ID

static final java.lang.String REPOSITORY_ID
See Also:
Constant Field Values

USERNAME

static final java.lang.String USERNAME
See Also:
Constant Field Values

PASSWORD

static final java.lang.String PASSWORD
See Also:
Constant Field Values

LOCALE

static final java.lang.String LOCALE
See Also:
Constant Field Values

OFFSET

static final java.lang.String OFFSET
See Also:
Constant Field Values

LENGTH

static final java.lang.String LENGTH
See Also:
Constant Field Values

LOCALE_ISO639_LANGUAGE

static final java.lang.String LOCALE_ISO639_LANGUAGE
See Also:
Constant Field Values

LOCALE_ISO3166_COUNTRY

static final java.lang.String LOCALE_ISO3166_COUNTRY
See Also:
Constant Field Values

SERVLET_CONTEXT

static final java.lang.String SERVLET_CONTEXT
See Also:
Constant Field Values
Method Detail

getBinding

java.lang.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

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

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

getRepositoryId

java.lang.String getRepositoryId()
Returns the repository id.


getUsername

java.lang.String getUsername()
Returns the user name.


getPassword

java.lang.String getPassword()
Returns the password.


getLocale

java.lang.String getLocale()
Returns the locale.


getOffset

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


getLength

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



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