public final class HttpServletUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearRequestAndResponse() |
static String |
getAbsoluteUrl(String url) |
static <T> T |
getAttribute(String name) |
static boolean |
getBooleanParameter(javax.servlet.http.HttpServletRequest request,
String paramName) |
static String |
getFullRequestUrl() |
static String |
getFullRequestUrl(javax.servlet.http.HttpServletRequest request) |
static String |
getFullUrl(String url) |
static int |
getIntegerParameter(javax.servlet.http.HttpServletRequest request,
String paramName) |
static String |
getOriginatingContextPath() |
static String |
getOriginatingRequestUri() |
static String |
getParameter(String name) |
static Map<String,Object> |
getParameterMap(javax.servlet.http.HttpServletRequest request) |
static String[] |
getParameterValues(String name) |
static String |
getPathVariable(String name) |
static Map<String,String> |
getPathVariables() |
static javax.servlet.http.HttpServletRequest |
getRequest() |
static String |
getRequestBaseFileName() |
static String |
getRequestFileName() |
static javax.servlet.http.HttpServletResponse |
getResponse() |
static String |
getServerUrl() |
static String |
getServerUrl(javax.servlet.http.HttpServletRequest request) |
static boolean |
isApiCall() |
static boolean |
isApiCall(javax.servlet.http.HttpServletRequest request) |
static <T> T |
notFound() |
static void |
redirect(String url) |
static <T> T |
seeOther(String location) |
static <T> T |
sendRedirect(String location) |
static void |
setAttribute(String name,
Object value) |
static Charset |
setContentTypeWithCharset(org.springframework.http.HttpHeaders headers,
org.springframework.http.MediaType mediaType) |
static Charset |
setContentTypeWithCharset(org.springframework.http.HttpOutputMessage outputMessage,
org.springframework.http.MediaType mediaType) |
static void |
setPathVariable(String name,
Object value) |
static void |
setPathVariable(String name,
String value) |
static void |
setRequestAndResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static void clearRequestAndResponse()
public static <T> T getAttribute(String name)
public static boolean getBooleanParameter(javax.servlet.http.HttpServletRequest request,
String paramName)
public static String getFullRequestUrl()
public static String getFullRequestUrl(javax.servlet.http.HttpServletRequest request)
public static int getIntegerParameter(javax.servlet.http.HttpServletRequest request,
String paramName)
public static String getOriginatingContextPath()
public static String getOriginatingRequestUri()
public static Map<String,Object> getParameterMap(javax.servlet.http.HttpServletRequest request)
public static javax.servlet.http.HttpServletRequest getRequest()
public static String getRequestBaseFileName()
public static String getRequestFileName()
public static javax.servlet.http.HttpServletResponse getResponse()
public static String getServerUrl()
public static String getServerUrl(javax.servlet.http.HttpServletRequest request)
public static boolean isApiCall()
public static boolean isApiCall(javax.servlet.http.HttpServletRequest request)
public static <T> T notFound()
public static void redirect(String url)
public static <T> T seeOther(String location)
public static <T> T sendRedirect(String location)
public static Charset setContentTypeWithCharset(org.springframework.http.HttpHeaders headers, org.springframework.http.MediaType mediaType)
public static Charset setContentTypeWithCharset(org.springframework.http.HttpOutputMessage outputMessage, org.springframework.http.MediaType mediaType)
public static void setRequestAndResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.