/** * Returns any extra path information associated with the URL the client sent when it made this request. * The extra path information follows the servlet path but precedes the query string. * This method returns null if there was no extra path information. **/ public String getPathInfo() { return _servletRequest.getPathInfo(); }
/** * Returns the part of this request's URL that calls the servlet. This includes either the servlet name * or a path to the servlet, but does not include any extra path information or a query string. **/ public String getServletPath() { return _servletRequest.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 ); }
Servlet getServlet() throws ServletException { if (isFilterActive()) throw new IllegalStateException( "Current context is a filter - may not request servlet."); return _metaData.getServlet(); }
boolean isFilterActive() { return getFilterIndex() < _metaData.getFilters().length; }
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 ); }
Servlet getServlet() throws ServletException { if (isFilterActive()) throw new IllegalStateException( "Current context is a filter - may not request servlet."); return _metaData.getServlet(); }
boolean isFilterActive() { return getFilterIndex() < _metaData.getFilters().length; }
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 ); }
Servlet getServlet() throws ServletException { if (isFilterActive()) throw new IllegalStateException( "Current context is a filter - may not request servlet."); return _metaData.getServlet(); }
/** * Returns the part of this request's URL that calls the servlet. This includes either the servlet name * or a path to the servlet, but does not include any extra path information or a query string. **/ public String getServletPath() { return _servletRequest.getServletPath(); }
/** * Returns any extra path information associated with the URL the client sent when it made this request. * The extra path information follows the servlet path but precedes the query string. * This method returns null if there was no extra path information. **/ public String getPathInfo() { return _servletRequest.getPathInfo(); }
boolean isFilterActive() { return getFilterIndex() < _metaData.getFilters().length; }
public void include( ServletRequest request, ServletResponse response ) throws ServletException, IOException { _servletMetaData.getServlet().service( DispatchedRequestWrapper.createIncludeRequestWrapper( (HttpServletRequest) request, this ), response ); } }
/** * Returns the part of this request's URL that calls the servlet. This includes either the servlet name * or a path to the servlet, but does not include any extra path information or a query string. **/ public String getServletPath() { return _servletRequest.getServletPath(); }
/** * Returns any extra path information associated with the URL the client sent when it made this request. * The extra path information follows the servlet path but precedes the query string. * This method returns null if there was no extra path information. **/ public String getPathInfo() { return _servletRequest.getPathInfo(); }
public Filter getFilter() throws ServletException { if (!isFilterActive()) throw new IllegalStateException( "Current context is a servlet - may not request filter."); return _metaData.getFilters()[ getFilterIndex() ].getFilter(); }
public void include( ServletRequest request, ServletResponse response ) throws ServletException, IOException { _servletMetaData.getServlet().service( DispatchedRequestWrapper.createIncludeRequestWrapper( (HttpServletRequest) request, this ), response ); } }
public String getServletPath() { return _requestContext.getServletMetaData().getServletPath(); }
public String getPathInfo() { return _requestContext.getServletMetaData().getPathInfo(); } }