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

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

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

Wrapper.getServletClassName介绍

[英]Return the fully qualified servlet class name for this servlet.
[中]返回此servlet的完全限定servlet类名。

代码示例

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

/**
   * Configures the given web module's DefaultServlet with the 
   * applicable web properties from sun-web.xml.
   */
  private void configureDefaultServlet(WebModule webModule) {

    // Find the DefaultServlet
    Wrapper wrapper = (Wrapper)webModule.findChild("default");
    if (wrapper == null) {
      return;
    }

    String servletClass = wrapper.getServletClassName();
    if (servletClass == null
        || !servletClass.equals(Globals.DEFAULT_SERVLET_CLASS_NAME)) {
      return;
    }

    String fileEncoding = webModule.getFileEncoding();
    if (fileEncoding != null) {
      wrapper.addInitParameter("fileEncoding", fileEncoding);
    }
  }
}

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

((Context) getParent()).findChild(Constants.JSP_SERVLET_NAME);
if (jspWrapper != null) {
  actualClass = jspWrapper.getServletClassName();

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

ServletRegistrationImpl regis = null;
if (isProgrammatic ||
    (null == wrapper.getServletClassName() &&
      null == wrapper.getJspFile())) {
  regis = createDynamicServletRegistrationImpl(
if (null == wrapper.getServletClassName() &&
    null == wrapper.getJspFile()) {
  wrapper.getServletClassName())) {
isJsfApplication = true;

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

wrapper = (Wrapper) context.findChild(name);
if (wrapper != null) {
  String actualServletClass = wrapper.getServletClassName();
  if ((actualServletClass != null)
    && (actualServletClass.startsWith

相关文章