@Override public HttpServletMapping getHttpServletMapping() { return servletRequest.getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * The default behavior of this method is to return getMapping() on the * wrapped request object. */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * The default behavior of this method is to return getMapping() on the * wrapped request object. */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * The default behavior of this method is to return getMapping() on the * wrapped request object. */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
/** * <p>The default behavior of this method is to * return getServletMapping() on the wrapped request object.</p> */ @Override public HttpServletMapping getHttpServletMapping() { return this._getHttpServletRequest().getHttpServletMapping(); }
@Override public HttpServletMapping getHttpServletMapping() { HttpServletMapping result = null; switch (dispatcherType) { case INCLUDE: // Safe to cast because we received this in the ctor // as an HttpServletRequest. result = ((HttpServletRequest)getRequest()).getHttpServletMapping(); break; case ASYNC: case FORWARD: case ERROR: result = mappingForDispatch; break; default: // REQUEST break; } return result; }
/** * Set the request that we are wrapping. * * @param request The new wrapped request */ void setRequest(HttpServletRequest request) { super.setRequest(request); // Initialize the attributes for this request dispatcherType = (DispatcherType)request.getAttribute(Globals.DISPATCHER_TYPE_ATTR); requestDispatcherPath = request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR); // Initialize the path elements for this request contextPath = request.getContextPath(); pathInfo = request.getPathInfo(); queryString = request.getQueryString(); requestURI = request.getRequestURI(); servletPath = request.getServletPath(); mapping = request.getHttpServletMapping(); }
/** * Set the request that we are wrapping. * * @param request The new wrapped request */ void setRequest(HttpServletRequest request) { super.setRequest(request); // Initialize the attributes for this request dispatcherType = (DispatcherType)request.getAttribute(Globals.DISPATCHER_TYPE_ATTR); requestDispatcherPath = request.getAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR); // Initialize the path elements for this request contextPath = request.getContextPath(); pathInfo = request.getPathInfo(); queryString = request.getQueryString(); requestURI = request.getRequestURI(); servletPath = request.getServletPath(); mapping = request.getHttpServletMapping(); }
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpServletMapping mapping = request.getHttpServletMapping(); System.out.println(mapping); System.out.println(mapping.getMappingMatch()); response.getWriter() .append("Mapping match:") .append(mapping.getMappingMatch().name()) .append("\n") .append("Match value:") .append(mapping.getMatchValue()) .append("\n") .append("Pattern:") .append(mapping.getPattern()); }
queryString); originalMapping = ((HttpServletRequest)getRequest()).getHttpServletMapping(); specialAttributes.put(RequestDispatcher.FORWARD_MAPPING, originalMapping); break; servletPath); originalMapping = ((HttpServletRequest)getRequest()).getHttpServletMapping(); specialAttributes.put(AsyncContext.ASYNC_MAPPING, originalMapping);
private void doDispatch(ServletRequest request, ServletResponse response) throws ServletException, IOException { // Set up to handle the specified request and response State state = new State(request, response, false); // Create a wrapped response to use for this request wrapResponse(state); ApplicationHttpRequest wrequest = (ApplicationHttpRequest) wrapRequest(state); HttpServletRequest hrequest = state.hrequest; wrequest.setAttribute(Globals.DISPATCHER_TYPE_ATTR, DispatcherType.ASYNC); wrequest.setAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR, getCombinedPath()); wrequest.setAttribute(AsyncContext.ASYNC_MAPPING, hrequest.getHttpServletMapping()); wrequest.setContextPath(context.getPath()); wrequest.setRequestURI(requestURI); wrequest.setServletPath(servletPath); wrequest.setPathInfo(pathInfo); if (queryString != null) { wrequest.setQueryString(queryString); wrequest.setQueryParams(queryString); } if (!Globals.STRICT_SERVLET_COMPLIANCE) { wrequest.setMapping(mapping); } invoke(state.outerRequest, state.outerResponse, state); }
private void doDispatch(ServletRequest request, ServletResponse response) throws ServletException, IOException { // Set up to handle the specified request and response State state = new State(request, response, false); // Create a wrapped response to use for this request wrapResponse(state); ApplicationHttpRequest wrequest = (ApplicationHttpRequest) wrapRequest(state); HttpServletRequest hrequest = state.hrequest; wrequest.setAttribute(Globals.DISPATCHER_TYPE_ATTR, DispatcherType.ASYNC); wrequest.setAttribute(Globals.DISPATCHER_REQUEST_PATH_ATTR, getCombinedPath()); wrequest.setAttribute(AsyncContext.ASYNC_MAPPING, hrequest.getHttpServletMapping()); wrequest.setContextPath(context.getPath()); wrequest.setRequestURI(requestURI); wrequest.setServletPath(servletPath); wrequest.setPathInfo(pathInfo); if (queryString != null) { wrequest.setQueryString(queryString); wrequest.setQueryParams(queryString); } if (!Globals.STRICT_SERVLET_COMPLIANCE) { wrequest.setMapping(mapping); } invoke(state.outerRequest, state.outerResponse, state); }