public class RequestUtils extends Object
HttpServletRequest operation.| Modifier | Constructor and Description |
|---|---|
private |
RequestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
extractAcceptHeader(javax.servlet.http.HttpServletRequest request)
Returns the
Accept header from the passed-in HttpServletRequest. |
static RequestMethod |
extractMethod(javax.servlet.http.HttpServletRequest httpServletRequest)
Returns the
RequestMethod for the passed-in HttpServletRequest. |
static String |
extractPath(javax.servlet.http.HttpServletRequest request)
Returns the path of the current request with out the context path.
|
public static String extractPath(javax.servlet.http.HttpServletRequest request)
request - the HttpServletRequest.String the request path without the context path (suffix)public static RequestMethod extractMethod(javax.servlet.http.HttpServletRequest httpServletRequest)
RequestMethod for the passed-in HttpServletRequest.httpServletRequest - the HttpServletRequestRequestMethod matching the Http Method of the request.public static Set<String> extractAcceptHeader(javax.servlet.http.HttpServletRequest request)
Accept header from the passed-in HttpServletRequest.request - the HttpServletRequestSet<String> of the values of the Http Accept Header, or an empty list if there was not Accept headerCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.