org.apache.tuscany.sca.http
Class ExtensibleServletHost
java.lang.Object
org.apache.tuscany.sca.http.ExtensibleServletHost
- All Implemented Interfaces:
- ServletHost
public class ExtensibleServletHost
- extends java.lang.Object
- implements ServletHost
Default implementation of an extensible servlet host.
- Version:
- $Rev: 537376 $ $Date: 2007-05-12 11:16:49 +0100 (Sat, 12 May 2007) $
Method Summary |
void |
addServletMapping(java.lang.String uri,
javax.servlet.Servlet servlet)
Add a mapping for an instance of a Servlet. |
javax.servlet.Servlet |
removeServletMapping(java.lang.String uri)
Remove a servlet mapping. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtensibleServletHost
public ExtensibleServletHost(ServletHostExtensionPoint servletHosts)
addServletMapping
public void addServletMapping(java.lang.String uri,
javax.servlet.Servlet servlet)
throws ServletMappingException
- Description copied from interface:
ServletHost
- Add 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.
- Specified by:
addServletMapping
in interface ServletHost
- Parameters:
uri
- the uri-mapping for the Servletservlet
- the Servlet that should be invoked
- Throws:
ServletMappingException
removeServletMapping
public javax.servlet.Servlet removeServletMapping(java.lang.String uri)
throws ServletMappingException
- Description copied from interface:
ServletHost
- Remove a servlet mapping. This directs the servlet contain not to direct
any more requests to a previously registered Servlet.
- Specified by:
removeServletMapping
in interface ServletHost
- Parameters:
uri
- the uri-mapping for the Servlet
- Returns:
- the servlet that was registered to the mapping, null if nothing
was registered to the mapping
- Throws:
ServletMappingException