|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.implementation.node.webapp.NodeWebAppServletHost
public class NodeWebAppServletHost
ServletHost implementation for use in a Webapp Node environment.
| Method Summary | |
|---|---|
void |
addServletMapping(java.lang.String suri,
Servlet servlet)
Add a mapping for an instance of a Servlet. |
void |
destroy()
Destroy the Servlet host. |
void |
doFilter(ServletRequest request,
ServletResponse response,
javax.servlet.FilterChain chain)
|
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request |
int |
getDefaultPort()
Returns the default port for the server. |
RequestDispatcher |
getRequestDispatcher(java.lang.String suri)
Returns a Servlet request dispatcher for the Servlet mapped to the specified URI. |
Servlet |
getServletMapping(java.lang.String suri)
Returns the Servlet mapped to the given URI. |
java.net.URL |
getURLMapping(java.lang.String suri)
Returns the complete URL mapped to the specified URI. |
void |
init(FilterConfig filterConfig)
Initialize the Servlet host. |
Servlet |
removeServletMapping(java.lang.String suri)
Remove a Servlet mapping. |
static NodeWebAppServletHost |
servletHost()
Returns the Servlet host for the current Web app. |
void |
setContextPath(java.lang.String path)
Sets the portion of the request URI that indicates the context of the request |
void |
setDefaultPort(int port)
Sets the default port for the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NodeWebAppServletHost servletHost()
public void init(FilterConfig filterConfig)
throws ServletException
filterConfig -
ServletException
public void addServletMapping(java.lang.String suri,
Servlet servlet)
throws ServletMappingException
ServletHost
addServletMapping in interface ServletHostsuri - the URI-mapping for the Servletservlet - the Servlet that should be invoked
ServletMappingException
public Servlet removeServletMapping(java.lang.String suri)
throws ServletMappingException
ServletHost
removeServletMapping in interface ServletHostsuri - the URI-mapping for the Servlet
ServletMappingException
public Servlet getServletMapping(java.lang.String suri)
throws ServletMappingException
ServletHost
getServletMapping in interface ServletHostsuri - the URI-mapping for the Servlet
ServletMappingException
public java.net.URL getURLMapping(java.lang.String suri)
throws ServletMappingException
ServletHost
getURLMapping in interface ServletHostServletMappingException
public RequestDispatcher getRequestDispatcher(java.lang.String suri)
throws ServletMappingException
ServletHost
getRequestDispatcher in interface ServletHostsuri - the URI mapped to a Servlet
ServletMappingExceptionpublic void destroy()
ServletException
public void doFilter(ServletRequest request,
ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
ServletException
java.io.IOException
ServletExceptionpublic void setDefaultPort(int port)
ServletHost
setDefaultPort in interface ServletHostport - the default portpublic int getDefaultPort()
ServletHost
getDefaultPort in interface ServletHostpublic java.lang.String getContextPath()
ServletHost
getContextPath in interface ServletHostpublic void setContextPath(java.lang.String path)
ServletHost
setContextPath in interface ServletHostpath - the context path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||