Class ForwardAttributes
- java.lang.Object
-
- org.apache.wicket.protocol.http.servlet.ForwardAttributes
-
public class ForwardAttributes extends java.lang.ObjectRepresents additional attributes present in aServletRequestwhen 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContextPath()Gets contextPath.java.lang.StringgetPathInfo()java.lang.StringgetQueryString()Gets the query string.java.lang.StringgetRequestUri()Gets requestUri.java.lang.StringgetServletPath()Gets servletPath.static ForwardAttributesof(javax.servlet.http.HttpServletRequest request, java.lang.String filterPrefix)Factory for creating instances of this class.java.lang.StringtoString()
-
-
-
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
nullif it does not.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-