eXo WS :: Framework :: Servlet 2.4.0-Alpha3

org.exoplatform.ws.frameworks.servlet
Class AliasedURLRequestRedirector.UrlReplacerWrapper

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

public class AliasedURLRequestRedirector.UrlReplacerWrapper
extends javax.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 javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
AliasedURLRequestRedirector.UrlReplacerWrapper(javax.servlet.http.HttpServletRequest request, Map<String,String> replaceMap)
           
 
Method Summary
 String getPathInfo()
          Overridden method.
 String getRequestURI()
          Overridden method.
 StringBuffer getRequestURL()
          Overridden method.
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, 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 javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 

Constructor Detail

AliasedURLRequestRedirector.UrlReplacerWrapper

public AliasedURLRequestRedirector.UrlReplacerWrapper(javax.servlet.http.HttpServletRequest request,
                                                      Map<String,String> replaceMap)
Parameters:
request - original request
replaceMap - replace map
Method Detail

getPathInfo

public String getPathInfo()
Overridden method.

Specified by:
getPathInfo in interface javax.servlet.http.HttpServletRequest
Overrides:
getPathInfo in class javax.servlet.http.HttpServletRequestWrapper
Returns:
actual path info
See Also:
HttpServletRequestWrapper.getPathInfo()

getRequestURI

public String getRequestURI()
Overridden method.

Specified by:
getRequestURI in interface javax.servlet.http.HttpServletRequest
Overrides:
getRequestURI in class javax.servlet.http.HttpServletRequestWrapper
Returns:
actual URI
See Also:
HttpServletRequestWrapper.getRequestURI()

getRequestURL

public StringBuffer getRequestURL()
Overridden method.

Specified by:
getRequestURL in interface javax.servlet.http.HttpServletRequest
Overrides:
getRequestURL in class javax.servlet.http.HttpServletRequestWrapper
Returns:
actual URL
See Also:
HttpServletRequestWrapper.getRequestURL()

eXo WS :: Framework :: Servlet 2.4.0-Alpha3

Copyright © 2013 eXo Platform SAS. All Rights Reserved.