Class ForwardAttributes
- java.lang.Object
-
- org.apache.wicket.protocol.http.servlet.ForwardAttributes
-
public class ForwardAttributes extends java.lang.Object
Represents additional attributes present in aServletRequest
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_PATH
RequestDispatcher.FORWARD_PATH_INFO
RequestDispatcher.FORWARD_QUERY_STRING
RequestDispatcher.FORWARD_REQUEST_URI
RequestDispatcher.FORWARD_SERVLET_PATH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContextPath()
Gets contextPath.java.lang.String
getPathInfo()
java.lang.String
getQueryString()
Gets the query string.java.lang.String
getRequestUri()
Gets requestUri.java.lang.String
getServletPath()
Gets servletPath.static ForwardAttributes
of(javax.servlet.http.HttpServletRequest request, java.lang.String filterPrefix)
Factory for creating instances of this class.java.lang.String
toString()
-
-
-
Method Detail
-
getRequestUri
public java.lang.String getRequestUri()
Gets requestUri.- Returns:
- requestUri
-
getServletPath
public java.lang.String getServletPath()
Gets servletPath.- Returns:
- servletPath
-
getContextPath
public java.lang.String getContextPath()
Gets contextPath.- Returns:
- contextPath
-
getQueryString
public java.lang.String getQueryString()
Gets the query string.- Returns:
- the query string
-
getPathInfo
public java.lang.String getPathInfo()
- Returns:
- the path info of the request before the forward dispatch
-
of
public static ForwardAttributes of(javax.servlet.http.HttpServletRequest request, java.lang.String filterPrefix)
Factory for creating instances of this class.- Parameters:
request
-- Returns:
- instance of request contains forward attributes or
null
if it does not.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-