org.apache.chemistry.opencmis.server.impl.webservices
Class AbstractService

java.lang.Object
  extended by org.apache.chemistry.opencmis.server.impl.webservices.AbstractService
Direct Known Subclasses:
AclService, DiscoveryService, MultiFilingService, NavigationService, ObjectService, PolicyService, RelationshipService, RepositoryService, VersioningService

public abstract class AbstractService
extends java.lang.Object

This class contains operations used by all services.


Field Summary
static java.lang.String CALL_CONTEXT_MAP
           
 
Constructor Summary
AbstractService()
           
 
Method Summary
protected  void closeService(CmisService service)
          Closes the service instance.
protected  CmisException convertException(java.lang.Exception ex)
          Converts a CMIS exception to the appropriate Web Service exception.
protected  CallContext createContext(javax.xml.ws.WebServiceContext wsContext, java.lang.String repositoryId)
          Creates a CallContext object for the Web Service context.
protected  CmisService getService(javax.xml.ws.WebServiceContext wsContext, java.lang.String repositoryId)
          Returns the CmisService object.
protected  CmisServiceFactory getServiceFactory(javax.xml.ws.WebServiceContext wsContext)
          Returns the services factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALL_CONTEXT_MAP

public static final java.lang.String CALL_CONTEXT_MAP
See Also:
Constant Field Values
Constructor Detail

AbstractService

public AbstractService()
Method Detail

getServiceFactory

protected CmisServiceFactory getServiceFactory(javax.xml.ws.WebServiceContext wsContext)
Returns the services factory.


createContext

protected CallContext createContext(javax.xml.ws.WebServiceContext wsContext,
                                    java.lang.String repositoryId)
Creates a CallContext object for the Web Service context.


getService

protected CmisService getService(javax.xml.ws.WebServiceContext wsContext,
                                 java.lang.String repositoryId)
Returns the CmisService object.


closeService

protected void closeService(CmisService service)
Closes the service instance.


convertException

protected CmisException convertException(java.lang.Exception ex)
Converts a CMIS exception to the appropriate Web Service exception.



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