Top Description Fields Constructors Methods
org.eclipse.jgit.http.server.glue

public Class WrappedRequest

extends HttpServletRequestWrapper
Class Inheritance
Imports
jakarta.servlet.http.HttpServletRequest, .HttpServletRequestWrapper

Overrides the path and path info.

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
WrappedRequest(final HttpServletRequest
the original HTTP request.
originalRequest
,
final String
new servlet path to report to callers.
path
,
final String
new path info to report to callers.
pathInfo
)

Create a new request with different path and path info properties.

Method Summary

Modifier and TypeMethod and Description
public String
getPathInfo()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getPathInfo.

Implements jakarta.servlet.http.HttpServletRequest.getPathInfo.

The default behavior of this method is to return getPathInfo() on the wrapped request object.

public String
getPathTranslated()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getPathTranslated.

Implements jakarta.servlet.http.HttpServletRequest.getPathTranslated.

The default behavior of this method is to return getPathTranslated() on the wrapped request object.

public String
getServletPath()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getServletPath.

Implements jakarta.servlet.http.HttpServletRequest.getServletPath.

The default behavior of this method is to return getServletPath() on the wrapped request object.

Inherited from jakarta.servlet.http.HttpServletRequestWrapper:
authenticatechangeSessionIdgetAuthTypegetContextPathgetCookiesgetDateHeadergetHeadergetHeaderNamesgetHeadersgetHttpServletMappinggetIntHeadergetMethodgetPartgetPartsgetQueryStringgetRemoteUsergetRequestedSessionIdgetRequestURIgetRequestURLgetSessiongetSessiongetTrailerFieldsgetUserPrincipalisRequestedSessionIdFromCookieisRequestedSessionIdFromURLisRequestedSessionIdValidisTrailerFieldsReadyisUserInRoleloginlogoutnewPushBuilderupgrade

Field Detail

pathback to summary
private final String path
pathInfoback to summary
private final String pathInfo

Constructor Detail

WrappedRequestback to summary
public WrappedRequest(final HttpServletRequest originalRequest, final String path, final String pathInfo)

Create a new request with different path and path info properties.

Parameters
originalRequest:HttpServletRequest

the original HTTP request.

path:String

new servlet path to report to callers.

pathInfo:String

new path info to report to callers.

Since
7.0

Method Detail

getPathInfoback to summary
public String getPathInfo()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getPathInfo.

Implements jakarta.servlet.http.HttpServletRequest.getPathInfo.

Doc from jakarta.servlet.http.HttpServletRequestWrapper.getPathInfo.

The default behavior of this method is to return getPathInfo() on the wrapped request object.

Returns:String

Doc from jakarta.servlet.http.HttpServletRequest.getPathInfo.

a String specifying extra path information that comes after the servlet path but before the query string in the request URL; or null if the URL does not have any extra path information. The path will be canonicalized as per Servlet 6.0, 3.5. This method will not return any encoded characters unless the container is configured specifically to allow them.

Annotations
@Override
getPathTranslatedback to summary
public String getPathTranslated()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getPathTranslated.

Implements jakarta.servlet.http.HttpServletRequest.getPathTranslated.

Doc from jakarta.servlet.http.HttpServletRequestWrapper.getPathTranslated.

The default behavior of this method is to return getPathTranslated() on the wrapped request object.

Returns:String

Doc from jakarta.servlet.http.HttpServletRequest.getPathTranslated.

a String specifying the real path, or null if the URL does not have any extra path information

Annotations
@Override
getServletPathback to summary
public String getServletPath()

Overrides jakarta.servlet.http.HttpServletRequestWrapper.getServletPath.

Implements jakarta.servlet.http.HttpServletRequest.getServletPath.

Doc from jakarta.servlet.http.HttpServletRequestWrapper.getServletPath.

The default behavior of this method is to return getServletPath() on the wrapped request object.

Returns:String

Doc from jakarta.servlet.http.HttpServletRequest.getServletPath.

a String containing the path of the servlet being called, as specified in the request URL, or an empty string if the servlet used to process the request is matched using the "/*" pattern. The path will be canonicalized as per Servlet 6.0, 3.5. This method will not return any encoded characters unless the container is configured specifically to allow them.

Annotations
@Override