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

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

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

Wrapper.findInitParameter介绍

[英]Return the value for the specified initialization parameter name, if any; otherwise return null.
[中]返回指定初始化参数名称的值(如果有);否则返回null

代码示例

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<String,String>();
  
  String[] parameterNames = wrapper.findInitParameters();
  
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<>();
  String[] parameterNames = wrapper.findInitParameters();
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<String,String>();
  
  String[] parameterNames = wrapper.findInitParameters();
  
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<String,String>();
  
  String[] parameterNames = wrapper.findInitParameters();
  
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<>();
  String[] parameterNames = wrapper.findInitParameters();
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<String,String>();
  
  String[] parameterNames = wrapper.findInitParameters();
  
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<>();
  String[] parameterNames = wrapper.findInitParameters();
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

@Override
public Map<String, String> getInitParameters() {
  ParameterMap<String,String> result = new ParameterMap<String,String>();
  
  String[] parameterNames = wrapper.findInitParameters();
  
  for (String parameterName : parameterNames) {
    result.put(parameterName, wrapper.findInitParameter(parameterName));
  }
  result.setLocked(true);
  return result;
}

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

@Override
public String getInitParameter(String name) {
  return wrapper.findInitParameter(name);
}

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

private void convertJsps(WebXml webXml) {
  Map<String,String> jspInitParams;
  ServletDef jspServlet = webXml.getServlets().get("jsp");
  if (jspServlet == null) {
    jspInitParams = new HashMap<String,String>();
    Wrapper w = (Wrapper) context.findChild("jsp");
    if (w != null) {
      String[] params = w.findInitParameters();
      for (String param : params) {
        jspInitParams.put(param, w.findInitParameter(param));
      }
    }
  } else {
    jspInitParams = jspServlet.getParameterMap();
  }
  for (ServletDef servletDef: webXml.getServlets().values()) {
    if (servletDef.getJspFile() != null) {
      convertJsp(servletDef, jspInitParams);
    }
  }
}

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

public void clearWsContainer(String virtualHost, String contextRoot, String servletName) {
  if (virtualHost == null) virtualHost = engine.getDefaultHost();
  Container host = engine.findChild(virtualHost);
  if (host == null) {
    throw new IllegalArgumentException("Invalid virtual host '" + virtualHost + "'.  Do you have a matchiing Host entry in the server.xml?");
  }
  Context context = (Context) host.findChild("/" + contextRoot);
  if (context == null) {
    throw new IllegalArgumentException("Could not find web application context " + contextRoot + " in host " + host.getName());
  }
  Wrapper wrapper = (Wrapper) context.findChild(servletName);
  if (wrapper == null) {
    throw new IllegalArgumentException("Could not find servlet " + contextRoot + " in web application context " + context.getName());
  }
  // clear the webservice ref in the servlet context
  String webServicecontainerId = wrapper.findInitParameter(WsServlet.WEBSERVICE_CONTAINER);
  if (webServicecontainerId != null) {
    context.getServletContext().removeAttribute(webServicecontainerId);
    wrapper.removeInitParameter(WsServlet.WEBSERVICE_CONTAINER);
  }
}

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

private void convertJsps(WebXml webXml) {
  Map<String,String> jspInitParams;
  ServletDef jspServlet = webXml.getServlets().get("jsp");
  if (jspServlet == null) {
    jspInitParams = new HashMap<>();
    Wrapper w = (Wrapper) context.findChild("jsp");
    if (w != null) {
      String[] params = w.findInitParameters();
      for (String param : params) {
        jspInitParams.put(param, w.findInitParameter(param));
      }
    }
  } else {
    jspInitParams = jspServlet.getParameterMap();
  }
  for (ServletDef servletDef: webXml.getServlets().values()) {
    if (servletDef.getJspFile() != null) {
      convertJsp(servletDef, jspInitParams);
    }
  }
}

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

private void convertJsps(WebXml webXml) {
  Map<String,String> jspInitParams;
  ServletDef jspServlet = webXml.getServlets().get("jsp");
  if (jspServlet == null) {
    jspInitParams = new HashMap<>();
    Wrapper w = (Wrapper) context.findChild("jsp");
    if (w != null) {
      String[] params = w.findInitParameters();
      for (String param : params) {
        jspInitParams.put(param, w.findInitParameter(param));
      }
    }
  } else {
    jspInitParams = jspServlet.getParameterMap();
  }
  for (ServletDef servletDef: webXml.getServlets().values()) {
    if (servletDef.getJspFile() != null) {
      convertJsp(servletDef, jspInitParams);
    }
  }
}

相关文章