Package com.google.gerrit.util.http
Class RequestUtil
- java.lang.Object
-
- com.google.gerrit.util.http.RequestUtil
-
public class RequestUtil extends Object
Utilities for manipulating HTTP request objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getEncodedPathInfo(javax.servlet.http.HttpServletRequest req)
static Throwable
getErrorTraceAttribute(javax.servlet.http.HttpServletRequest req)
static void
setErrorTraceAttribute(javax.servlet.http.HttpServletRequest req, Throwable t)
-
-
-
Method Detail
-
setErrorTraceAttribute
public static void setErrorTraceAttribute(javax.servlet.http.HttpServletRequest req, Throwable t)
-
getErrorTraceAttribute
public static Throwable getErrorTraceAttribute(javax.servlet.http.HttpServletRequest req)
-
getEncodedPathInfo
public static String getEncodedPathInfo(javax.servlet.http.HttpServletRequest req)
- Returns:
- the same value as
HttpServletRequest.getPathInfo()
, but without decoding URL-encoded characters.
-
-