public class ForwardAttributes extends Object
ServletRequest when the servlet
container is handling a forward to another path than the initially requested one.
See documentation for the following request attributes for the values stored in this object:
RequestDispatcher.FORWARD_CONTEXT_PATHRequestDispatcher.FORWARD_PATH_INFORequestDispatcher.FORWARD_QUERY_STRINGRequestDispatcher.FORWARD_REQUEST_URIRequestDispatcher.FORWARD_SERVLET_PATH| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath()
Gets contextPath.
|
String |
getPathInfo() |
String |
getQueryString()
Gets the query string.
|
String |
getRequestUri()
Gets requestUri.
|
String |
getServletPath()
Gets servletPath.
|
static ForwardAttributes |
of(javax.servlet.http.HttpServletRequest request,
String filterPrefix)
Factory for creating instances of this class.
|
String |
toString() |
public String getRequestUri()
public String getServletPath()
public String getContextPath()
public String getQueryString()
public String getPathInfo()
public static ForwardAttributes of(javax.servlet.http.HttpServletRequest request, String filterPrefix)
request - null if it does not.Copyright © 2006–2021 Apache Software Foundation. All rights reserved.