Package org.apache.catalina.util
Class RequestUtil
java.lang.Object
org.apache.catalina.util.RequestUtil
General purpose request parsing and encoding utility methods.
- Author:
- Craig R. McClanahan, Tim Tye
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.This method will be removed in Tomcat 9static StringBuffer
getRequestURL
(HttpServletRequest request) Build an appropriate return value forHttpServletRequest.getRequestURL()
based on the provided request object.
-
Constructor Details
-
RequestUtil
public RequestUtil()
-
-
Method Details
-
getRequestURL
Build an appropriate return value forHttpServletRequest.getRequestURL()
based on the provided request object. Note that this will also work for instances ofHttpServletRequestWrapper
.- Parameters:
request
- The request object for which the URL should be built- Returns:
- The request URL for the given request object
-
filter
Deprecated.This method will be removed in Tomcat 9Filter the specified message string for characters that are sensitive in HTML. This avoids potential attacks caused by including JavaScript codes in the request URL that is often reported in error messages.- Parameters:
message
- The message string to be filtered- Returns:
- the filtered message
-