org.idoox.webservice.server
Class WebServiceContext

java.lang.Object
  extended byorg.idoox.webservice.server.WebServiceContext
All Implemented Interfaces:
ServiceInstanceContext

Deprecated. See ServiceInstanceContext

public abstract class WebServiceContext
extends java.lang.Object
implements ServiceInstanceContext

This class represents a context of a service instance.

Since:
3.0
Component:
Core

Constructor Summary
WebServiceContext()
          Deprecated.  
 
Method Summary
abstract  java.util.Map getContextData()
          Deprecated. Returns map of additional associated data with given service (common data for all instances of particular service)
abstract  java.lang.String getContextId()
          Deprecated. returns the id of the context.
static WebServiceContext getInstance()
          Deprecated. Returns instance of the WebServiceContext for the current execution environment
abstract  LifeCycleService getLifeCycleService()
          Deprecated. use org.idoox.wasp.server.WSContext.getLifeCycleService() instead
abstract  java.lang.String getRootPath()
          Deprecated. Returns absolute path of the root directory of the web service context represented by this instance
abstract  Configurable getServiceConfigurable()
          Deprecated. use getServiceInstanceConfigurable() method instead.
abstract  Configurable getServiceInstanceConfigurable()
          Deprecated. returns the configuration of the service instance
abstract  java.lang.String getServiceInstanceName()
          Deprecated. Return the name of this service instance.
abstract  java.lang.String getServiceName()
          Deprecated. use getServiceInstanceName() method instead.
abstract  void log(java.lang.String msg)
          Deprecated. logs a message
abstract  void log(java.lang.String message, java.lang.Throwable throwable)
          Deprecated. logs a message and exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.systinet.wasp.webservice.ServiceInstanceContext
getServiceInstance
 

Constructor Detail

WebServiceContext

public WebServiceContext()
Deprecated. 
Method Detail

getContextId

public abstract java.lang.String getContextId()
Deprecated. 
returns the id of the context.

Returns:
the id of this context

getServiceInstanceConfigurable

public abstract Configurable getServiceInstanceConfigurable()
Deprecated. 
returns the configuration of the service instance

Returns:
the configuration of the service; null if this service has access to no default persistent configuration

getServiceConfigurable

public abstract Configurable getServiceConfigurable()
Deprecated. use getServiceInstanceConfigurable() method instead.

returns the configuration of the service instance

Returns:
the configuration of the service; null if this service has access to no default persistent configuration

getRootPath

public abstract java.lang.String getRootPath()
Deprecated. 
Returns absolute path of the root directory of the web service context represented by this instance

Returns:
absolute path name of the root directory for this Web Service context instance

getContextData

public abstract java.util.Map getContextData()
Deprecated. 
Returns map of additional associated data with given service (common data for all instances of particular service)

Specified by:
getContextData in interface ServiceInstanceContext
Returns:
Map of additional data

getLifeCycleService

public abstract LifeCycleService getLifeCycleService()
Deprecated. use org.idoox.wasp.server.WSContext.getLifeCycleService() instead

returns life cycle service

Returns:
life cycle service

log

public abstract void log(java.lang.String msg)
Deprecated. 
logs a message

Parameters:
msg - message to be logged

log

public abstract void log(java.lang.String message,
                         java.lang.Throwable throwable)
Deprecated. 
logs a message and exception

Parameters:
message - the message to be logged
throwable - the exception to be logged

getInstance

public static WebServiceContext getInstance()
Deprecated. 
Returns instance of the WebServiceContext for the current execution environment

Returns:
instance of the WebServiceContext

getServiceInstanceName

public abstract java.lang.String getServiceInstanceName()
Deprecated. 
Return the name of this service instance. This name can be used for example in the ServiceStateManager.


getServiceName

public abstract java.lang.String getServiceName()
Deprecated. use getServiceInstanceName() method instead.

Return the name of this service instance. This name can be used for example in the ServiceStateManager.