diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:38:28 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:38:28 +0000 |
commit | ccdb9264ce71a776d4bb1cbf66a4e3f5012b48fd (patch) | |
tree | 9878c9a832805611320bf49ab2478031d6d8007c | |
parent | 4bc5593d3c7a512f18dc4820b3e645d842a38848 (diff) |
Updating WebAppServletHost to provide new version of addServletMapping
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748011 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java b/branches/sca-java-1.x/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java index 599afc541c..26114ab8b2 100644 --- a/branches/sca-java-1.x/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java +++ b/branches/sca-java-1.x/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java @@ -40,6 +40,7 @@ import javax.servlet.ServletContext; import javax.servlet.ServletException; import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.host.http.SecurityContext; import org.apache.tuscany.sca.host.http.ServletHost; import org.apache.tuscany.sca.host.http.ServletMappingException; @@ -79,6 +80,10 @@ public class WebAppServletHost implements ServletHost { } 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 / |