org.apache.catalina.connector.Request.getRequestPathMB()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(135)

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

Request.getRequestPathMB介绍

[英]Get the request path.
[中]获取请求路径。

代码示例

代码示例来源:origin: org.glassfish.main.security/websecurity

public DataChunk getRequestPathMB() {
  return httpRequest.getRequestPathMB();
}

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

@Override
public Object get(Request request, String name) {
  return (request.requestDispatcherPath == null) ? request
      .getRequestPathMB().toString()
      : request.requestDispatcherPath.toString();
}

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

@Override
public Object get(Request request, String name) {
  return (request.requestDispatcherPath == null) ? request
      .getRequestPathMB().toString()
      : request.requestDispatcherPath.toString();
}

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

@Override
public Object get(Request request, String name) {
  return (request.requestDispatcherPath == null) ? request
      .getRequestPathMB().toString()
      : request.requestDispatcherPath.toString();
}

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

@Override
public Object get(Request request, String name) {
  return (request.requestDispatcherPath == null) ? request
      .getRequestPathMB().toString()
      : request.requestDispatcherPath.toString();
}

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

@Override
public Object get(Request request, String name) {
  return (request.requestDispatcherPath == null) ? request
      .getRequestPathMB().toString()
      : request.requestDispatcherPath.toString();
}

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

public void dispatch() {
  this.servletContext = null;
  if (servletRequest == getRequestFacade()) {
    // Get the path directly
    path = getRequestPathMB().toString();
  } else if (servletRequest instanceof HttpServletRequest) {
    // Remap the path to the target context
    String requestURI = ((HttpServletRequest) servletRequest).getRequestURI();
    this.servletContext = getServletContext0().getContext(requestURI);
    if (servletContext != null) {
      path = requestURI.substring(servletContext.getContextPath().length());
    } else {
      throw new IllegalStateException(sm.getString("coyoteRequest.dispatchNoServletContext", requestURI));
    }
  }
  resume();
}

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

public void dispatch() {
  this.servletContext = null;
  if (servletRequest == getRequestFacade()) {
    // Get the path directly
    path = getRequestPathMB().toString();
  } else if (servletRequest instanceof HttpServletRequest) {
    // Remap the path to the target context
    String requestURI = ((HttpServletRequest) servletRequest).getRequestURI();
    this.servletContext = getServletContext0().getContext(requestURI);
    if (servletContext != null) {
      path = requestURI.substring(servletContext.getContextPath().length());
    } else {
      throw MESSAGES.cannotFindDispatchContext(requestURI);
    }
  }
  wakeup();
}

代码示例来源:origin: stackoverflow.com

public final void invoke(Request request, Response response) throws IOException, ServletException {

  // Disallow any direct access to resources under WEB-INF or META-INF
  MessageBytes requestPathMB = request.getRequestPathMB();
  if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0))
      || (requestPathMB.equalsIgnoreCase("/META-INF"))
      || (requestPathMB.startsWithIgnoreCase("/WEB-INF/", 0))
      || (requestPathMB.equalsIgnoreCase("/WEB-INF"))) {
      notFound(response);   // <-- Issues a response.sendError(HttpServletResponse.SC_NOT_FOUND);
      return;
  }
  ...
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*  882 */       return this.requestDispatcherPath == null ? getRequestPathMB().toString() : this.requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

} else if (name.equals(Globals.DISPATCHER_REQUEST_PATH_ATTR)) {
  return (requestDispatcherPath == null) 
    ? getRequestPathMB().toString()
    : requestDispatcherPath.toString();

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

MessageBytes requestPathMB = request.getRequestPathMB();
if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0))
    || (requestPathMB.equalsIgnoreCase("/META-INF"))

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

MessageBytes requestPathMB = request.getRequestPathMB();
if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0))
    || (requestPathMB.equalsIgnoreCase("/META-INF"))

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

MessageBytes requestPathMB = request.getRequestPathMB();
if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0))
    || (requestPathMB.equalsIgnoreCase("/META-INF"))

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

MessageBytes requestPathMB = request.getRequestPathMB();
if ((requestPathMB.startsWithIgnoreCase("/META-INF/", 0))
    || (requestPathMB.equalsIgnoreCase("/META-INF"))

相关文章

Request类方法