org.apache.chemistry.opencmis.client.bindings.impl
Class CmisBindingsHelper

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.impl.CmisBindingsHelper

public final class CmisBindingsHelper
extends Object

A collection of static methods that are used in multiple places within the bindings implementation.


Field Summary
static String ACCEPT_LANGUAGE
           
static String AUTHENTICATION_PROVIDER_OBJECT
           
static String REPOSITORY_INFO_CACHE
           
static String SPI_OBJECT
           
static String TYPE_DEFINTION_CACHE
           
 
Method Summary
static AuthenticationProvider getAuthenticationProvider(BindingSession session)
          Returns the authentication provider from the session or null if no authentication provider is set.
static RepositoryInfoCache getRepositoryInfoCache(BindingSession session)
          Returns the repository info cache from the session.
static CmisSpi getSPI(BindingSession session)
          Gets the SPI object for the given session.
static TypeDefinitionCache getTypeDefinitionCache(BindingSession session)
          Returns the type definition cache from the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_INFO_CACHE

public static final String REPOSITORY_INFO_CACHE
See Also:
Constant Field Values

TYPE_DEFINTION_CACHE

public static final String TYPE_DEFINTION_CACHE
See Also:
Constant Field Values

SPI_OBJECT

public static final String SPI_OBJECT
See Also:
Constant Field Values

AUTHENTICATION_PROVIDER_OBJECT

public static final String AUTHENTICATION_PROVIDER_OBJECT
See Also:
Constant Field Values

ACCEPT_LANGUAGE

public static final String ACCEPT_LANGUAGE
See Also:
Constant Field Values
Method Detail

getSPI

public static CmisSpi getSPI(BindingSession session)
Gets the SPI object for the given session. If there is already a SPI object in the session it will be returned. If there is no SPI object it will be created and put into the session.

Parameters:
session - the session object
Returns:
the SPI object

getAuthenticationProvider

public static AuthenticationProvider getAuthenticationProvider(BindingSession session)
Returns the authentication provider from the session or null if no authentication provider is set.


getRepositoryInfoCache

public static RepositoryInfoCache getRepositoryInfoCache(BindingSession session)
Returns the repository info cache from the session.


getTypeDefinitionCache

public static TypeDefinitionCache getTypeDefinitionCache(BindingSession session)
Returns the type definition cache from the session.



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