本文整理了Java中org.apache.catalina.Wrapper.addMapping()
方法的一些代码示例,展示了Wrapper.addMapping()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrapper.addMapping()
方法的具体详情如下:
包路径:org.apache.catalina.Wrapper
类名称:Wrapper
方法名:addMapping
[英]Add a mapping associated with the Wrapper.
[中]添加与包装器关联的映射。
代码示例来源:origin: OryxProject/oryx
wrapper.addInitParameter("javax.ws.rs.Application", OryxApplication.class.getName());
wrapper.addMapping("/*");
wrapper.setLoadOnStartup(1);
wrapper.setMultipartConfigElement(new MultipartConfigElement(""));
代码示例来源:origin: org.glassfish.main.web/web-core
wrapper.addMapping(pattern);
代码示例来源:origin: org.apache.openejb/tomee-webservices
wrapper.addMapping(mapping);
context.addServletMapping(mapping, name);
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
wrapper.addMapping(adjustedPattern);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
wrapper.addMapping(adjustedPattern);
代码示例来源:origin: codefollower/Tomcat-Research
wrapper.addMapping(decodedPattern);
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
wrapper.addMapping(decodedPattern);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
wrapper.addMapping(decodedPattern);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
wrapper.addMapping(decodedPattern);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
wrapper.addMapping(decodedPattern);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
wrapper.addMapping(decodedPattern);
代码示例来源:origin: tomcat/catalina
wrapper.addMapping(pattern);
代码示例来源:origin: jboss.web/jbossweb
wrapper.addMapping(pattern);
代码示例来源:origin: com.bsb.common.vaadin/com.bsb.common.vaadin7.embed
/**
* Initializes the vaadin servlet and maps it to <tt>/*</tt>.
* <p/>
* Returns the associated {@link Wrapper} for further customization.
*
* @param servlet the servlet to use to handle vaadin calls.
* @param <T> the type of the servlet
* @return the created wrapper for the servlet
*/
protected <T extends VaadinServlet> Wrapper initializeVaadinServlet(T servlet) {
// Setup vaadin servlet
final Wrapper wrapper = Tomcat.addServlet(getContext(),
"vaadin", servlet);
if (getConfig().getWidgetSet() != null) {
wrapper.addInitParameter("widgetset", getConfig().getWidgetSet());
}
wrapper.addMapping("/*");
return wrapper;
}
代码示例来源:origin: org.apache.openejb/openejb-tomcat-catalina
wrapper.setServletClass(WsServlet.class.getName());
setWsContainer(context, wrapper, httpListener);
wrapper.addMapping("/*");
代码示例来源:origin: org.jboss.web/jbossweb
wrapper.addMapping(pattern);
代码示例来源:origin: org.apache.airavata/airavata-embedded-tomcat
tomcat.addContext("/airavata-server", System.getenv("AIRAVATA_HOME"));
Wrapper axis2Servlet = tomcat.addServlet("/airavata-server", "AxisServlet", "org.apache.axis2.transport.http.AxisServlet");
axis2Servlet.addMapping("/servlet/AxisServlet");
axis2Servlet.addMapping("*.jws");
axis2Servlet.addMapping("/services/*");
axis2Servlet.addInitParameter("axis2.repository.path",System.getenv("AIRAVATA_HOME") + File.separator + "repository");
axis2Servlet.addInitParameter("axis2.xml.path", System.getenv("AIRAVATA_HOME") +
filter1mapping.addURLPattern("/services/experiment/*");
context.addFilterMap(filter1mapping);
registryServlet.addMapping("/services/registry/*");
configurationServlet.addMapping("/services/server/*");
experimentServlet.addMapping("/services/experiment/*");
context.addApplicationListener("org.apache.airavata.rest.mappings.utils.RegistryListener");
代码示例来源:origin: ch.rasc/embeddedtc
rootCtx.setPrivileged(true);
Tomcat.addServlet(rootCtx, "listContexts",
new ListContextsServlet(rootCtx)).addMapping("/");
内容来源于网络,如有侵权,请联系作者删除!