Class AliasedURLRequestRedirector.UrlReplacerWrapper

java.lang.Object
jakarta.servlet.ServletRequestWrapper
jakarta.servlet.http.HttpServletRequestWrapper
org.exoplatform.ws.frameworks.servlet.AliasedURLRequestRedirector.UrlReplacerWrapper
All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletRequest
Enclosing class:
AliasedURLRequestRedirector

public class AliasedURLRequestRedirector.UrlReplacerWrapper extends jakarta.servlet.http.HttpServletRequestWrapper
The custom http request wrapper that is designed to substitute given parameters in URLs with corresponding values. Parameters are marked at an URL in the form: {$parameter-name}
  • Field Summary

    Fields inherited from interface jakarta.servlet.http.HttpServletRequest

    BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    UrlReplacerWrapper(jakarta.servlet.http.HttpServletRequest request, Map<String,String> replaceMap)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Overridden method.
    Overridden method.
    Overridden method.

    Methods inherited from class jakarta.servlet.http.HttpServletRequestWrapper

    authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade

    Methods inherited from class jakarta.servlet.ServletRequestWrapper

    getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.ServletRequest

    getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
  • Constructor Details

    • UrlReplacerWrapper

      public UrlReplacerWrapper(jakarta.servlet.http.HttpServletRequest request, Map<String,String> replaceMap)
      Parameters:
      request - original request
      replaceMap - replace map
  • Method Details

    • getPathInfo

      public String getPathInfo()
      Overridden method.
      Specified by:
      getPathInfo in interface jakarta.servlet.http.HttpServletRequest
      Overrides:
      getPathInfo in class jakarta.servlet.http.HttpServletRequestWrapper
      Returns:
      actual path info
      See Also:
      • HttpServletRequestWrapper.getPathInfo()
    • getRequestURI

      public String getRequestURI()
      Overridden method.
      Specified by:
      getRequestURI in interface jakarta.servlet.http.HttpServletRequest
      Overrides:
      getRequestURI in class jakarta.servlet.http.HttpServletRequestWrapper
      Returns:
      actual URI
      See Also:
      • HttpServletRequestWrapper.getRequestURI()
    • getRequestURL

      public StringBuffer getRequestURL()
      Overridden method.
      Specified by:
      getRequestURL in interface jakarta.servlet.http.HttpServletRequest
      Overrides:
      getRequestURL in class jakarta.servlet.http.HttpServletRequestWrapper
      Returns:
      actual URL
      See Also:
      • HttpServletRequestWrapper.getRequestURL()