From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../node/webapp/NodeWebAppServletHost.html | 567 +++++++++++++++++++++ 1 file changed, 567 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.html new file mode 100644 index 0000000000..d72526bf5a --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.html @@ -0,0 +1,567 @@ + + + + + + +NodeWebAppServletHost + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.implementation.node.webapp +
+Class NodeWebAppServletHost

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.implementation.node.webapp.NodeWebAppServletHost
+
+
+
All Implemented Interfaces:
ServletHost
+
+
+
+
public class NodeWebAppServletHost
extends java.lang.Object
implements ServletHost
+ + +

+ServletHost implementation for use in a Webapp Node environment. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddServletMapping(java.lang.String suri, + Servlet servlet) + +
+          Add a mapping for an instance of a Servlet.
+ voiddestroy() + +
+          Destroy the Servlet host.
+ voiddoFilter(ServletRequest request, + ServletResponse response, + javax.servlet.FilterChain chain) + +
+           
+ java.lang.StringgetContextPath() + +
+          Returns the portion of the request URI that indicates the context of the request
+ intgetDefaultPort() + +
+          Returns the default port for the server.
+ RequestDispatchergetRequestDispatcher(java.lang.String suri) + +
+          Returns a Servlet request dispatcher for the Servlet mapped to the specified URI.
+ ServletgetServletMapping(java.lang.String suri) + +
+          Returns the Servlet mapped to the given URI.
+ java.net.URLgetURLMapping(java.lang.String suri) + +
+          Returns the complete URL mapped to the specified URI.
+ voidinit(FilterConfig filterConfig) + +
+          Initialize the Servlet host.
+ ServletremoveServletMapping(java.lang.String suri) + +
+          Remove a Servlet mapping.
+static NodeWebAppServletHostservletHost() + +
+          Returns the Servlet host for the current Web app.
+ voidsetContextPath(java.lang.String path) + +
+          Sets the portion of the request URI that indicates the context of the request
+ voidsetDefaultPort(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
+ +

+servletHost

+
+public static NodeWebAppServletHost servletHost()
+
+
Returns the Servlet host for the current Web app. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+init

+
+public void init(FilterConfig filterConfig)
+          throws ServletException
+
+
Initialize the Servlet host. +

+

+
+
+
+
Parameters:
filterConfig - +
Throws: +
ServletException
+
+
+
+ +

+addServletMapping

+
+public void addServletMapping(java.lang.String suri,
+                              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:
suri - the URI-mapping for the Servlet
servlet - the Servlet that should be invoked +
Throws: +
ServletMappingException
+
+
+
+ +

+removeServletMapping

+
+public Servlet removeServletMapping(java.lang.String suri)
+                             throws ServletMappingException
+
+
Description copied from interface: ServletHost
+
Remove a Servlet mapping. This directs the Servlet container not to direct + any more requests to a previously registered Servlet. +

+

+
Specified by:
removeServletMapping in interface ServletHost
+
+
+
Parameters:
suri - 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
+
+
+
+ +

+getServletMapping

+
+public Servlet getServletMapping(java.lang.String suri)
+                          throws ServletMappingException
+
+
Description copied from interface: ServletHost
+
Returns the Servlet mapped to the given URI. +

+

+
Specified by:
getServletMapping in interface ServletHost
+
+
+
Parameters:
suri - the URI-mapping for the Servlet +
Returns:
the Servlet registered with the mapping +
Throws: +
ServletMappingException
+
+
+
+ +

+getURLMapping

+
+public java.net.URL getURLMapping(java.lang.String suri)
+                           throws ServletMappingException
+
+
Description copied from interface: ServletHost
+
Returns the complete URL mapped to the specified URI. +

+

+
Specified by:
getURLMapping in interface ServletHost
+
+
+ +
Returns:
the URL mapped to the specified URI +
Throws: +
ServletMappingException
+
+
+
+ +

+getRequestDispatcher

+
+public RequestDispatcher getRequestDispatcher(java.lang.String suri)
+                                       throws ServletMappingException
+
+
Description copied from interface: ServletHost
+
Returns a Servlet request dispatcher for the Servlet mapped to the specified URI. +

+

+
Specified by:
getRequestDispatcher in interface ServletHost
+
+
+
Parameters:
suri - the URI mapped to a Servlet +
Returns:
a RequestDispatcher that can be used to dispatch requests to + that Servlet +
Throws: +
ServletMappingException
+
+
+
+ +

+destroy

+
+public void destroy()
+
+
Destroy the Servlet host. +

+

+
+
+
+ +
Throws: +
ServletException
+
+
+
+ +

+doFilter

+
+public void doFilter(ServletRequest request,
+                     ServletResponse response,
+                     javax.servlet.FilterChain chain)
+              throws java.io.IOException,
+                     ServletException
+
+
+
+
+
+ +
Throws: +
java.io.IOException +
ServletException
+
+
+
+ +

+setDefaultPort

+
+public void setDefaultPort(int port)
+
+
Description copied from interface: ServletHost
+
Sets the default port for the server. +

+

+
Specified by:
setDefaultPort in interface ServletHost
+
+
+
Parameters:
port - the default port
+
+
+
+ +

+getDefaultPort

+
+public int getDefaultPort()
+
+
Description copied from interface: ServletHost
+
Returns the default port for the server. +

+

+
Specified by:
getDefaultPort in interface ServletHost
+
+
+ +
Returns:
the default port
+
+
+
+ +

+getContextPath

+
+public java.lang.String getContextPath()
+
+
Description copied from interface: ServletHost
+
Returns the portion of the request URI that indicates the context of the request +

+

+
Specified by:
getContextPath in interface ServletHost
+
+
+ +
Returns:
a String specifying the portion of the request URI that indicates the context of the request
+
+
+
+ +

+setContextPath

+
+public void setContextPath(java.lang.String path)
+
+
Description copied from interface: ServletHost
+
Sets the portion of the request URI that indicates the context of the request +

+

+
Specified by:
setContextPath in interface ServletHost
+
+
+
Parameters:
path - the context path
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3