org.jwarp.service.web
Interface IWebService

All Superinterfaces:
IConfigurable, IExceptionProvider, IService
All Known Implementing Classes:
WebService

public interface IWebService
extends IService

The WebService interface is the central processing unit for all JWeb conformant wen applications.

Version:
1.0
Author:
A. Tresch, M.Schaefer

Field Summary
static java.lang.String SERVICE_TYPE
           
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 void disableCache()
           
 ICache enableCache(java.lang.String serviceName, java.lang.String cacheID)
           
 void forward(java.lang.String target, java.lang.String url, WebContext webContext)
           
 WebStatus getWebStatus()
          Get an extended web service status.
 int numServices()
          Get the number of currently running service requests.
 void performRequest(WebContext webContext)
          Servlet service method.
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Method Detail

performRequest

public void performRequest(WebContext webContext)
Servlet service method. This is the main entry-point for JavaWeb. it does the following steps:
  1. if there is a new session, it will call the sssion-init object.
  2. the HttpRequest is wrapped into a JavawebRequest which provides more flexibility
  3. it calls the dispatch-method of the supplied ActionController

forward

public void forward(java.lang.String target,
                    java.lang.String url,
                    WebContext webContext)
             throws InvalidForwardException,
                    InvalidForwardTypeException

numServices

public int numServices()
Get the number of currently running service requests.
Returns:
The current service request count

enableCache

public ICache enableCache(java.lang.String serviceName,
                          java.lang.String cacheID)

disableCache

public void disableCache()

getWebStatus

public WebStatus getWebStatus()
Get an extended web service status.
Returns:
a web service status object

©   O R C A   S y s t e m s