Author: mcombellack
Date: Fri Mar 21 07:09:27 2008
New Revision: 639652
URL: http://svn.apache.org/viewvc?rev=639652&view=rev
Log:
Minor JavaDoc updates and spelling corrections
Modified:
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java
Modified:
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java?rev=639652&r1=639651&r2=639652&view=diff
==============================================================================
---
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java
(original)
+++
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppRequestDispatcher.java
Fri Mar 21 07:09:27 2008
@@ -31,8 +31,8 @@
import javax.servlet.http.HttpServletRequestWrapper;
/**
- * A servlet request dispatcher that can be used to delegate requests to a
- * serlvet registered with the Webapp servlet host.
+ * A Servlet request dispatcher that can be used to delegate requests to a
+ * Serlvet registered with the Webapp Servlet host.
*
* @version $Rev$ $Date$
*/
@@ -58,7 +58,7 @@
}
/**
- * Returns a request wrapper which will return the correct servlet path
+ * Returns a request wrapper which will return the correct Servlet path
* and path info.
*
* @param request
@@ -89,7 +89,7 @@
}
/**
- * Remove any path suffix thats part of the servlet context path.
+ * Remove any path suffix thats part of the Servlet context path.
*
* @param path
* @param servletPath
Modified:
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java?rev=639652&r1=639651&r2=639652&view=diff
==============================================================================
---
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java
(original)
+++
incubator/tuscany/java/sca/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java
Fri Mar 21 07:09:27 2008
@@ -75,7 +75,7 @@
}
/**
- * Returns the servlet host for the current Web app.
+ * Returns the Servlet host for the current Web app.
*
* @return
*/
@@ -84,17 +84,17 @@
}
/**
- * Initialize the servlet host.
+ * Initialize the Servlet host.
*
* @param filterConfig
* @throws ServletException
*/
public void init(final FilterConfig filterConfig) throws ServletException {
- // Create a servlet config wrappering the given filter config
+ // Create a Servlet config wrapping the given filter config
ServletConfig servletConfig = servletConfig(filterConfig);
- // Get the servlet context
+ // Get the Servlet context
ServletContext servletContext = servletConfig.getServletContext();
// Initialize the context path
@@ -120,12 +120,12 @@
throw new ServletException(e);
}
- // Register the servlet host
+ // Register the Servlet host
ServletHostExtensionPoint servletHosts = servletHosts(node);
servletHosts.getServletHosts().clear();
servletHosts.addServletHost(servletHost);
- // Save the node in the servlet context
+ // Save the node in the Servlet context
servletContext.setAttribute(SCAClient.class.getName(), node);
// Start the node
@@ -135,7 +135,7 @@
throw new ServletException(e);
}
- // Initialize the registered servlets
+ // Initialize the registered Servlets
for (Servlet servlet : servlets.values()) {
servlet.init(servletConfig);
}
@@ -188,7 +188,7 @@
suri = contextPath + suri;
}
- // Get the servlet mapped to the given path
+ // Get the Servlet mapped to the given path
Servlet servlet = servlets.get(suri);
return servlet;
}
@@ -242,7 +242,7 @@
suri = contextPath + suri;
- // Get the servlet mapped to the given path
+ // Get the Servlet mapped to the given path
Servlet servlet = servlets.get(suri);
if (servlet != null) {
return new NodeWebAppRequestDispatcher(suri, servlet);
@@ -262,18 +262,18 @@
}
}
- // No servlet found
+ // No Servlet found
return null;
}
/**
- * Destroy the servlet host.
+ * Destroy the Servlet host.
*
* @throws ServletException
*/
public void destroy() {
- // Destroy the registered servlets
+ // Destroy the registered Servlets
for (Servlet servlet : servlets.values()) {
servlet.destroy();
}
@@ -291,7 +291,7 @@
public void doFilter(ServletRequest request, ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException, ServletException {
- // Get the servlet path
+ // Get the Servlet path
HttpServletRequest httpRequest = (HttpServletRequest)request;
String path = httpRequest.getPathInfo();
if (path == null) {
@@ -301,11 +301,11 @@
path = "/";
}
- // Get a request dispatcher for the servlet mapped to that path
+ // Get a request dispatcher for the Servlet mapped to that path
RequestDispatcher dispatcher = getRequestDispatcher(path);
if (dispatcher != null) {
- // Let the dispatcher forward the request to the servlet
+ // Let the dispatcher forward the request to the Servlet
dispatcher.forward(request, response);
} else {
@@ -333,7 +333,7 @@
/**
* Initializes the contextPath
- * The 2.5 Servlet API has a getter for this, for pre 2.5 servlet
+ * The 2.5 Servlet API has a getter for this, for pre 2.5 Servlet
* containers use an init parameter.
*/
private static String contextPath(ServletContext context) {
@@ -359,7 +359,7 @@
}
/**
- * Returns the servlet host extension point used by the given node.
+ * Returns the Servlet host extension point used by the given node.
*
* @return
*/
@@ -377,7 +377,7 @@
}
/**
- * Returns a servlet config wrappering a filter config.
+ * Returns a Servlet config wrapping a filter config.
*
* @param filterConfig
* @return
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]