org.apache.tapestry5.urlrewriter
Class SimpleRequestWrapper
java.lang.Object
org.apache.tapestry5.services.DelegatingRequest
org.apache.tapestry5.urlrewriter.SimpleRequestWrapper
- All Implemented Interfaces:
- org.apache.tapestry5.services.Request
public class SimpleRequestWrapper
- extends DelegatingRequest
Class that wraps a Request. It delegates all methods except ones
related to URL rewriting.
|
Constructor Summary |
SimpleRequestWrapper(org.apache.tapestry5.services.Request request,
String path)
Constructor that receives a request and a path. |
SimpleRequestWrapper(org.apache.tapestry5.services.Request request,
String serverName,
String path)
Constructor that receives a request, a server name and a path. |
| Methods inherited from class org.apache.tapestry5.services.DelegatingRequest |
getAttribute, getContextPath, getDateHeader, getHeader, getHeaderNames, getLocale, getLocalPort, getMethod, getParameter, getParameterNames, getParameters, getRemoteHost, getServerPort, getSession, isRequestedSessionIdValid, isSecure, isXHR, setAttribute, setRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRequestWrapper
public SimpleRequestWrapper(org.apache.tapestry5.services.Request request,
String serverName,
String path)
- Constructor that receives a request, a server name and a path.
- Parameters:
request - a Request. It cannot be null.serverName - a String.path - a String. It cannot be null.
SimpleRequestWrapper
public SimpleRequestWrapper(org.apache.tapestry5.services.Request request,
String path)
- Constructor that receives a request and a path. The server name used is
got from the request.
- Parameters:
request - a Request. It cannot be null.path - a String. It cannot be null.
getPath
public String getPath()
- Specified by:
getPath in interface org.apache.tapestry5.services.Request- Overrides:
getPath in class DelegatingRequest
- See Also:
Request.getPath()
getServerName
public String getServerName()
- Specified by:
getServerName in interface org.apache.tapestry5.services.Request- Overrides:
getServerName in class DelegatingRequest
- See Also:
Request.getServerName()
Copyright © 2012. All Rights Reserved.