org.apache.catalina.Wrapper.setOverridable()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.apache.catalina.Wrapper.setOverridable()方法的一些代码示例,展示了Wrapper.setOverridable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wrapper.setOverridable()方法的具体详情如下:
包路径:org.apache.catalina.Wrapper
类名称:Wrapper
方法名:setOverridable

Wrapper.setOverridable介绍

[英]Sets the overridable attribute for this Servlet.
[中]

代码示例

代码示例来源:origin: org.springframework.boot/spring-boot

private void addDefaultServlet(Context context) {
  Wrapper defaultServlet = context.createWrapper();
  defaultServlet.setName("default");
  defaultServlet.setServletClass("org.apache.catalina.servlets.DefaultServlet");
  defaultServlet.addInitParameter("debug", "0");
  defaultServlet.addInitParameter("listings", "false");
  defaultServlet.setLoadOnStartup(1);
  // Otherwise the default location of a Spring DispatcherServlet cannot be set
  defaultServlet.setOverridable(true);
  context.addChild(defaultServlet);
  context.addServletMappingDecoded("/", "default");
}

代码示例来源:origin: com.github.skjolber.mockito-rest-spring/tomcat

defaultServlet.setName("default");
defaultServlet.setLoadOnStartup(1);
defaultServlet.setOverridable(true);
defaultServlet.setServlet(servlet);

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

wrapper.getServletClass() != null) {
if (wrapper.isOverridable()) {
  wrapper.setOverridable(false);
} else {
  return null;

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

wrapper.getServletClass() != null) {
if (wrapper.isOverridable()) {
  wrapper.setOverridable(false);
} else {
  return null;

代码示例来源:origin: nutzam/nutzboot

private void addDefaultServlet() {
  Wrapper defaultServlet = this.tomcatContext.createWrapper();
  defaultServlet.setName("default");
  defaultServlet.setServletClass("org.apache.catalina.servlets.DefaultServlet");
  defaultServlet.addInitParameter("debug", "0");
  defaultServlet.addInitParameter("listings", "false");
  defaultServlet.setLoadOnStartup(1);
  defaultServlet.setOverridable(true);
  this.tomcatContext.addChild(defaultServlet);
  addServletMapping("/", "default");
}

代码示例来源:origin: codefollower/Tomcat-Research

wrapper.getServletClass() != null) {
if (wrapper.isOverridable()) {
  wrapper.setOverridable(false);
} else {
  return null;

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

wrapper.getServletClass() != null) {
if (wrapper.isOverridable()) {
  wrapper.setOverridable(false);
} else {
  return null;

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

ctx, "default", "org.apache.catalina.servlets.DefaultServlet");
servlet.setLoadOnStartup(1);
servlet.setOverridable(true);
servlet.addInitParameter("fork", "false");
servlet.setLoadOnStartup(3);
servlet.setOverridable(true);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

ctx, "default", "org.apache.catalina.servlets.DefaultServlet");
servlet.setLoadOnStartup(1);
servlet.setOverridable(true);
servlet.addInitParameter("fork", "false");
servlet.setLoadOnStartup(3);
servlet.setOverridable(true);

代码示例来源:origin: codefollower/Tomcat-Research

ctx, "default", "org.apache.catalina.servlets.DefaultServlet");
servlet.setLoadOnStartup(1);
servlet.setOverridable(true);
servlet.addInitParameter("fork", "false");
servlet.setLoadOnStartup(3);
servlet.setOverridable(true);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

ctx, "default", "org.apache.catalina.servlets.DefaultServlet");
servlet.setLoadOnStartup(1);
servlet.setOverridable(true);
servlet.addInitParameter("fork", "false");
servlet.setLoadOnStartup(3);
servlet.setOverridable(true);

代码示例来源:origin: org.dbflute.tomcat/tomcat-boot

servlet.setOverridable(true);

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

wrapper.getServletClass() != null) {
if (wrapper.isOverridable()) {
  wrapper.setOverridable(false);
} else {
  return null;

代码示例来源:origin: org.jboss.web/jbossweb

if (existingWrapper != null) {
  if (existingWrapper.isOverridable()) {
    existingWrapper.setOverridable(false);
  } else {
    return null;

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

servlet.getAsyncSupported().booleanValue());
wrapper.setOverridable(servlet.isOverridable());
context.addChild(wrapper);

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

servlet.getAsyncSupported().booleanValue());
wrapper.setOverridable(servlet.isOverridable());
context.addChild(wrapper);

代码示例来源:origin: org.jboss.web/jbossweb

public ServletRegistration.Dynamic addServlet(String servletName, String className)
    throws IllegalArgumentException, IllegalStateException {
  if (restricted) {
    throw MESSAGES.restrictedListenerCannotCallMethod();
  }
  if (!context.isStarting()) {
    throw MESSAGES.contextAlreadyInitialized(getContextPath());
  }
  Wrapper existingWrapper = (Wrapper)context.findChild(servletName);
  if (existingWrapper != null) {
    if (existingWrapper.isOverridable()) {
      existingWrapper.setOverridable(false);
    } else {
      return null;
    }
  }
  Wrapper wrapper = context.createWrapper();
  wrapper.setDynamic(true);
  wrapper.setName(servletName);
  wrapper.setServletClass(className);
  context.addChild(wrapper);
  return (ServletRegistration.Dynamic) wrapper.getFacade();
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

servlet.getAsyncSupported().booleanValue());
wrapper.setOverridable(servlet.isOverridable());
context.addChild(wrapper);

代码示例来源:origin: codefollower/Tomcat-Research

servlet.getAsyncSupported().booleanValue());
wrapper.setOverridable(servlet.isOverridable());
context.addChild(wrapper);

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

servlet.getAsyncSupported().booleanValue());
wrapper.setOverridable(servlet.isOverridable());
context.addChild(wrapper);

相关文章