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

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

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

Wrapper.isUnavailable介绍

[英]Is this servlet currently unavailable?
[中]这个servlet当前不可用吗?

代码示例

代码示例来源:origin: psi-probe/psi-probe

/**
 * Gets the application servlet maps.
 *
 * @param context the context
 * @return the application servlet maps
 */
public static List<ServletMapping> getApplicationServletMaps(Context context) {
 String[] sms = context.findServletMappings();
 List<ServletMapping> servletMaps = new ArrayList<>(sms.length);
 for (String servletMapping : sms) {
  if (servletMapping != null) {
   String sn = context.findServletMapping(servletMapping);
   if (sn != null) {
    ServletMapping sm = new ServletMapping();
    sm.setApplicationName(context.getName().length() > 0 ? context.getName() : "/");
    sm.setUrl(servletMapping);
    sm.setServletName(sn);
    Container container = context.findChild(sn);
    if (container instanceof Wrapper) {
     Wrapper wrapper = (Wrapper) container;
     sm.setServletClass(wrapper.getServletClass());
     sm.setAvailable(!wrapper.isUnavailable());
    }
    servletMaps.add(sm);
   }
  }
 }
 return servletMaps;
}

代码示例来源:origin: psi-probe/psi-probe

si.setServletName(wrapper.getName());
si.setServletClass(wrapper.getServletClass());
si.setAvailable(!wrapper.isUnavailable());
si.setLoadOnStartup(wrapper.getLoadOnStartup());
si.setRunAs(wrapper.getRunAs());

代码示例来源:origin: tomcat/catalina

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

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

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-as7

notFound(response);
  return;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-7

notFound(response);
  return;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: org.glassfish.main.web/web-core

notFound((HttpServletResponse) response.getResponse());
  return null;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

notFound(response);
  return;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

notFound(response);
  return;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

notFound(response);
  return;
} else if (wrapper.isUnavailable()) {

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

response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;
} else if (wrapper.isUnavailable()) {

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

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

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

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

if (wrapper == null || wrapper.isUnavailable()) {
  response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;

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

if (wrapper == null || wrapper.isUnavailable()) {
  response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;

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

if (wrapper == null || wrapper.isUnavailable()) {
  response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;

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

if (wrapper == null || wrapper.isUnavailable()) {
  response.sendError(HttpServletResponse.SC_NOT_FOUND);
  return;

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

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

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

if (wrapper.isUnavailable()) {
  wrapper.getLogger().warn(
      sm.getString("applicationDispatcher.isUnavailable",

相关文章