public String getPathInfo() { return _requestContext.getServletMetaData().getPathInfo(); } }
IncludeRequestWrapper( HttpServletRequest request, RequestDispatcher dispatcher ) { super( request, dispatcher ); _attributes.put( REQUEST_URI, ((RequestDispatcherImpl) dispatcher ).getRequestURI() ); _attributes.put( CONTEXT_PATH, request.getContextPath() ); _attributes.put( SERVLET_PATH, ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getServletPath() ); final String pathInfo = ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getPathInfo(); if (pathInfo != null) _attributes.put( PATH_INFO, pathInfo ); }
/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }
public String getRequestURI() { return _requestContext.getRequestURI(); }
/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }
public String getRequestURI() { return _requestContext.getRequestURI(); }
public String getPathInfo() { return _requestContext.getServletMetaData().getPathInfo(); } }
IncludeRequestWrapper( HttpServletRequest request, RequestDispatcher dispatcher ) { super( request, dispatcher ); _attributes.put( REQUEST_URI, ((RequestDispatcherImpl) dispatcher ).getRequestURI() ); _attributes.put( CONTEXT_PATH, request.getContextPath() ); _attributes.put( SERVLET_PATH, ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getServletPath() ); final String pathInfo = ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getPathInfo(); if (pathInfo != null) _attributes.put( PATH_INFO, pathInfo ); }
/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }
public String getPathInfo() { return _requestContext.getServletMetaData().getPathInfo(); } }
public String getServletPath() { return _requestContext.getServletMetaData().getServletPath(); }
public String getServletPath() { return _requestContext.getServletMetaData().getServletPath(); }
public String getServletPath() { return _requestContext.getServletMetaData().getServletPath(); }
IncludeRequestWrapper( HttpServletRequest request, RequestDispatcher dispatcher ) { super( request, dispatcher ); _attributes.put( REQUEST_URI, ((RequestDispatcherImpl) dispatcher ).getRequestURI() ); _attributes.put( CONTEXT_PATH, request.getContextPath() ); _attributes.put( SERVLET_PATH, ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getServletPath() ); final String pathInfo = ((RequestDispatcherImpl) dispatcher ).getServletMetaData().getPathInfo(); if (pathInfo != null) _attributes.put( PATH_INFO, pathInfo ); }
public void pushIncludeRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push an include request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createIncludeRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }
public void pushForwardRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push a forward request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createForwardRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }
public void pushIncludeRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push an include request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createIncludeRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }
public void pushForwardRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push a forward request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createForwardRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }
public void pushForwardRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push a forward request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createForwardRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }
public void pushIncludeRequest( RequestDispatcher rd, HttpServletRequest request, HttpServletResponse response ) throws ServletException { if (isFilterActive()) throw new IllegalStateException( "May not push an include request when no servlet is active" ); _contextStack.push( new ExecutionContext( DispatchedRequestWrapper.createIncludeRequestWrapper( request, rd ), response, ((RequestDispatcherImpl) rd).getServletMetaData() ) ); }