package org.apache.sling.api.wrappers;
This class is not a "wrapper" per se, but computes the correct path info,
request URI, etc. for included requests. When including a request via
javax.servlet.RequestDispatcher, the Servlet API specifies that target paths of
the included request are available as request attributes.
Request.getPathInfo(), for example will return the value for the including
request, *not* for the included one.
Attribute name used by the RequestDispatcher to indicate the context path
of the included request, as a String.
Attribute name used by the RequestDispatcher to indicate the path info of
the included request, as a String.
Attribute name used by the RequestDispatcher to indicate the query string
of the included request, as a String.
Attribute name used by the RequestDispatcher to indicate the request URI
of the included request, as a String.
Attribute name used by the RequestDispatcher to indicate the servlet path
of the included request, as a String.
Return the context path for r, using the appropriate request attribute if
the request is an included one.
final String attr = (String) r.getAttribute(INCLUDE_CONTEXT_PATH);
return attr != null ? attr : r.getContextPath();
Return the context path for r, using the appropriate request attribute if
the request is an included one.
final String attr = (String) r.getAttribute(INCLUDE_PATH_INFO);
return attr != null ? attr : r.getPathInfo();
Return the query string for r, using the appropriate request attribute if
the request is an included one.
final String attr = (String) r.getAttribute(INCLUDE_QUERY_STRING);
return attr != null ? attr : r.getQueryString();
Return the request URI for r, using the appropriate request attribute if
the request is an included one.
final String attr = (String) r.getAttribute(INCLUDE_REQUEST_URI);
return attr != null ? attr : r.getRequestURI();
Return the servlet path for r, using the appropriate request attribute if
the request is an included one.
final String attr = (String) r.getAttribute(INCLUDE_SERVLET_PATH);
return attr != null ? attr : r.getServletPath();
True if r is an included request, in which case it has the
INCLUDE_REQUEST_URI attribute
return r.getAttribute(INCLUDE_REQUEST_URI) != null;