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_LOCAL
           
static String BINDING_WEBSERVICES
           
static String LENGTH
           
static String LOCALE
           
static String OFFSET
           
static String PASSWORD
           
static String REPOSITORY_ID
           
static String USERNAME
           
 
Method Summary
 String get(String key)
          Returns context data by key.
 String getBinding()
          Returns the binding.
 String getLocale()
          Returns the locale.
 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.
 

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_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
Method Detail

getBinding

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


isObjectInfoRequired

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


get

String 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.



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