Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.host
Interface ServletHost


public interface ServletHost

ServiceDefinition interface implemented by host environments that allow Servlets to be registered.

This interface allows an SCA system component to register a servlet to handle inbound requests.

Version:
$Rev: 430937 $ $Date: 2006-08-11 18:17:56 -0700 (Fri, 11 Aug 2006) $

Method Summary
 void registerMapping(String mapping, javax.servlet.Servlet servlet)
          Register a mapping for an instance of a Servlet.
 void unregisterMapping(String mapping)
          Unregister a servlet mapping.
 

Method Detail

registerMapping

void registerMapping(String mapping,
                     javax.servlet.Servlet servlet)
Register a mapping for an instance of a Servlet. This requests that the servlet container direct all requests to the designated mapping to the supplied Servlet instance.

Parameters:
mapping - the uri-mapping for the Servlet
servlet - the Servlet that should be invoked

unregisterMapping

void unregisterMapping(String mapping)
Unregister a servlet mapping. This directs the servlet contain not to direct any more requests to a previously registered Servlet.

Parameters:
mapping - the uri-mapping for the Servlet

Apache Tuscany SCA Kernel Sub-Project

-