public final class RequestUtil extends Object
Constructor and Description |
---|
RequestUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
filter(String message)
Filter the specified message string for characters that are sensitive
in HTML.
|
static StringBuffer |
getRequestURL(HttpServletRequest request)
Build an appropriate return value for
HttpServletRequest.getRequestURL() based on the provided
request object. |
public static String filter(String message)
message
- The message string to be filteredpublic static StringBuffer getRequestURL(HttpServletRequest request)
HttpServletRequest.getRequestURL()
based on the provided
request object. Note that this will also work for instances of
HttpServletRequestWrapper
.request
- The request object for which the URL should be builtCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.