Examples of servletPath()


Examples of org.apache.myfaces.mc.test.core.annotation.TestConfig.servletPath()

    protected String getServletPath()
    {
        TestConfig testConfig = getTestJavaClass().getAnnotation(TestConfig.class);
        if (testConfig != null)
        {
            return testConfig.servletPath();
        }
        return "/faces";
    }

    public void processLifecycleExecute()
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

 
      for( int j=0; j< ri.length; j++ ) {
    status=ri[j].contextMap( req );
    if( status!=0 ) break;
      }
      if(status == 0 && req.servletPath() != null &&
         ! req.servletPath().equals("") &&
         req.getContainer().getMapType() != Container.EXTENSION_MAP) {
    return req.servletPath().toString().substring(pathInfo.length());
      }
  }
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

      for( int j=0; j< ri.length; j++ ) {
    status=ri[j].contextMap( req );
    if( status!=0 ) break;
      }
      if(status == 0 && req.servletPath() != null &&
         ! req.servletPath().equals("") &&
         req.getContainer().getMapType() != Container.EXTENSION_MAP) {
    return req.servletPath().toString().substring(pathInfo.length());
      }
  }
     
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

    if( status!=0 ) break;
      }
      if(status == 0 && req.servletPath() != null &&
         ! req.servletPath().equals("") &&
         req.getContainer().getMapType() != Container.EXTENSION_MAP) {
    return req.servletPath().toString().substring(pathInfo.length());
      }
  }
     
  return null;
    }
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

  String pathInfo = (String)subReq.getAttribute("javax.servlet.include.servlet_path");
  if(pathInfo == null) {
      // If the attribute isn't there, then we aren't included.
      // In that case, we must use the real request.
      //*** DEBUG *** subReq = req;
      pathInfo=subReq.servletPath().toString();
  }
  String absPath = (String)subReq.getNote( realFileNote );
  if( absPath==null )
      absPath=FileUtil.safePath( context.getAbsolutePath(),
               pathInfo);
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

  boolean inInclude=req.getChild()!=null;
  Request subReq=req;
  if( inInclude ) subReq = req.getChild();
  Context ctx=req.getContext();
  String pathInfo=subReq.servletPath().toString();
  if( pathInfo == null ) pathInfo="";
  String absPath=FileUtil.safePath( context.getAbsolutePath(),
            pathInfo);
  File file = new File( absPath );
  String requestURI=subReq.requestURI().toString();
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

 
  realRequest.requestURI().setString( context.getPath() + path );
  // # 3162
  realRequest.unparsedURI().recycle();
  //realRequest.query().recycle();
  realRequest.servletPath().recycle();
  realRequest.pathInfo().recycle();
    realRequest.setChild(null);

  // merge query string as specified in specs - before, it may affect
  // the way the request is handled by special interceptors
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

  Object old_request_uri=replaceAttribute(realRequest, A_REQUEST_URI,
            context.getPath() + path );
  Object old_context_path=replaceAttribute(realRequest, A_CONTEXT_PATH,
             context.getPath());
  Object old_servlet_path=replaceAttribute(realRequest, A_SERVLET_PATH,
           subRequest.servletPath().toString());
  Object old_path_info=replaceAttribute(realRequest, A_PATH_INFO,
            subRequest.pathInfo().toString());
  Object old_query_string=replaceAttribute(realRequest, A_QUERY_STRING,
             queryString);
View Full Code Here

Examples of org.apache.tomcat.core.Request.servletPath()

  if( debug ) {
      System.out.println("RDI: old " + old_request_uri + " " +
             old_context_path + " " + old_servlet_path +
             " " + old_path_info + " " + old_query_string);
      System.out.println("RDI: new "+context.getPath() + " " + path + " "
             + subRequest.servletPath().toString() + " " +
             subRequest.pathInfo().toString() + " " +
             queryString);
  }

  if( queryString != null ) {
View Full Code Here

Examples of org.beangle.web.url.UrlBuilder.servletPath()

   * @return the URL, excluding any server name, context path or servlet path
   */
  public String getRequestUrl() {
    HttpServletRequest r = getHttpRequest();
    UrlBuilder builder = new UrlBuilder(r.getContextPath());
    builder.servletPath(r.getServletPath());
    builder.requestURI(r.getRequestURI()).pathInfo(r.getPathInfo());
    builder.queryString(r.getQueryString());
    return builder.buildRequestUrl();
  }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.