Top Description Constructors Methods
org.apache.catalina.util

public final Class RequestUtil

extends Object
Class Inheritance
Imports
jakarta.servlet.http.HttpServletRequest

General purpose request parsing and encoding utility methods.
Authors
Craig R. McClanahan, Tim Tye

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static StringBuffer

Returns:

The request URL for the given request object
getRequestURL
(HttpServletRequest
The request object for which the URL should be built
request
)

Build an appropriate return value for HttpServletRequest#getRequestURL() based on the provided request object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RequestUtilback to summary
public RequestUtil()

Method Detail

getRequestURLback to summary
public static StringBuffer getRequestURL(HttpServletRequest request)

Build an appropriate return value for HttpServletRequest#getRequestURL() based on the provided request object. Note that this will also work for instances of jakarta.servlet.http.HttpServletRequestWrapper.

Parameters
request:HttpServletRequest

The request object for which the URL should be built

Returns:StringBuffer

The request URL for the given request object