public class WebTool extends Object
| Constructor and Description |
|---|
WebTool() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLocalRequest(javax.servlet.ServletRequest request) |
static boolean |
isLoopbackAddress(String ip)
Checks if given IP address is a loopback.
|
static String |
listRequestParams(Map<String,String[]> paramsMap,
String[] exceptParams) |
static String |
listRequestParams(javax.servlet.ServletRequest request) |
static String |
listRequestParams(javax.servlet.ServletRequest request,
String[] exceptParams) |
static void |
setContentDisposition(javax.servlet.http.HttpServletResponse response,
String fileName)
Set content disposition HTTP header with a given file name.
|
public static String listRequestParams(javax.servlet.ServletRequest request)
public static String listRequestParams(javax.servlet.ServletRequest request, String[] exceptParams)
public static String listRequestParams(Map<String,String[]> paramsMap, String[] exceptParams)
public static boolean isLocalRequest(javax.servlet.ServletRequest request)
public static boolean isLoopbackAddress(String ip)
ip - address to checktrue if ip represents loopback
address, or false otherwise.public static void setContentDisposition(javax.servlet.http.HttpServletResponse response,
String fileName)
response - servlet responsefileName - file name that can contain non-ascii symbolsCopyright © 2014. All Rights Reserved.