|
aerogear-controller 1.0.0.M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.aerogear.controller.util.RequestUtils
public class RequestUtils
Utility methods for various HttpServletRequest operation.
| Constructor Summary | |
|---|---|
private |
RequestUtils()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private RequestUtils()
| Method Detail |
|---|
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 HttpServletRequest
RequestMethod 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 HttpServletRequest
Set<String> of the values of the Http Accept Header, or an empty list if
there was not Accept header
|
aerogear-controller 1.0.0.M1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||