diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:36:48 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:36:48 +0000 |
commit | 4bc5593d3c7a512f18dc4820b3e645d842a38848 (patch) | |
tree | d65520ab19779850444e986ce8adb85f6cd747c3 /branches/sca-java-1.x/modules/implementation-node-runtime | |
parent | 0ed7e65986ad8256ccfd33ef6cdc3e08c5a31365 (diff) |
Updating NodeWebAppServletHost to provide new version of addServletMapping
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748009 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java b/branches/sca-java-1.x/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java index 5a50f87d4c..cefd99fe96 100644 --- a/branches/sca-java-1.x/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java +++ b/branches/sca-java-1.x/modules/implementation-node-runtime/src/main/java/org/apache/tuscany/sca/implementation/node/webapp/NodeWebAppServletHost.java @@ -43,6 +43,7 @@ import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import org.apache.tuscany.sca.core.ExtensionPointRegistry; +import org.apache.tuscany.sca.host.http.SecurityContext; import org.apache.tuscany.sca.host.http.ServletHost; import org.apache.tuscany.sca.host.http.ServletHostExtensionPoint; import org.apache.tuscany.sca.host.http.ServletMappingException; @@ -133,6 +134,10 @@ public class NodeWebAppServletHost implements ServletHost, Filter { } public void addServletMapping(String suri, Servlet servlet) throws ServletMappingException { + addServletMapping(suri, servlet, null); + } + + public void addServletMapping(String suri, Servlet servlet, SecurityContext securityContext) throws ServletMappingException { URI pathURI = URI.create(suri); // Make sure that the path starts with a / |