|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.host.http.ExtensibleServletHost
public class ExtensibleServletHost
Default implementation of an extensible Servlet host.
Constructor Summary | |
---|---|
ExtensibleServletHost(ServletHostExtensionPoint servletHosts)
|
Method Summary | |
---|---|
void |
addServletMapping(java.lang.String uri,
Servlet servlet)
Add a mapping for an instance of a Servlet. |
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 uri)
Returns a Servlet request dispatcher for the Servlet mapped to the specified URI. |
Servlet |
getServletMapping(java.lang.String uri)
Returns the Servlet mapped to the given URI. |
java.net.URL |
getURLMapping(java.lang.String uri)
Returns the complete URL mapped to the specified URI. |
Servlet |
removeServletMapping(java.lang.String uri)
Remove a Servlet mapping. |
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 |
Constructor Detail |
---|
public ExtensibleServletHost(ServletHostExtensionPoint servletHosts)
Method Detail |
---|
public void setDefaultPort(int port)
ServletHost
setDefaultPort
in interface ServletHost
port
- the default portpublic int getDefaultPort()
ServletHost
getDefaultPort
in interface ServletHost
public void addServletMapping(java.lang.String uri, Servlet servlet) throws ServletMappingException
ServletHost
addServletMapping
in interface ServletHost
uri
- the URI-mapping for the Servletservlet
- the Servlet that should be invoked
ServletMappingException
public Servlet getServletMapping(java.lang.String uri) throws ServletMappingException
ServletHost
getServletMapping
in interface ServletHost
uri
- the URI-mapping for the Servlet
ServletMappingException
public Servlet removeServletMapping(java.lang.String uri) throws ServletMappingException
ServletHost
removeServletMapping
in interface ServletHost
uri
- the URI-mapping for the Servlet
ServletMappingException
public RequestDispatcher getRequestDispatcher(java.lang.String uri) throws ServletMappingException
ServletHost
getRequestDispatcher
in interface ServletHost
uri
- the URI mapped to a Servlet
ServletMappingException
public java.lang.String getContextPath()
ServletHost
getContextPath
in interface ServletHost
public java.net.URL getURLMapping(java.lang.String uri)
ServletHost
getURLMapping
in interface ServletHost
public void setContextPath(java.lang.String path)
ServletHost
setContextPath
in interface ServletHost
path
- the context path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |