|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.http.jetty.JettyServer
public class JettyServer
Implements an HTTP transport service using Jetty.
| Constructor Summary | |
|---|---|
JettyServer(WorkScheduler workScheduler)
|
|
| Method Summary | |
|---|---|
void |
addServletMapping(java.lang.String suri,
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 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. |
Servlet |
removeServletMapping(java.lang.String suri)
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. |
void |
setSendServerVersion(boolean sendServerVersion)
|
void |
stop()
Stop all the started servers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JettyServer(WorkScheduler workScheduler)
| Method Detail |
|---|
public void setDefaultPort(int port)
ServletHost
setDefaultPort in interface ServletHostport - the default portpublic int getDefaultPort()
ServletHost
getDefaultPort in interface ServletHostpublic void setSendServerVersion(boolean sendServerVersion)
public void stop()
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 java.net.URL getURLMapping(java.lang.String suri)
throws ServletMappingException
ServletHost
getURLMapping in interface ServletHostServletMappingException
public Servlet getServletMapping(java.lang.String suri)
throws ServletMappingException
ServletHost
getServletMapping in interface ServletHostsuri - the URI-mapping for the Servlet
ServletMappingExceptionpublic Servlet removeServletMapping(java.lang.String suri)
ServletHost
removeServletMapping in interface ServletHostsuri - the URI-mapping for the Servlet
public RequestDispatcher getRequestDispatcher(java.lang.String suri)
throws ServletMappingException
ServletHost
getRequestDispatcher in interface ServletHostsuri - the URI mapped to a Servlet
ServletMappingExceptionpublic 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 | ||||||||