|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.services.DelegatingRequest
org.apache.tapestry5.urlrewriter.SimpleRequestWrapper
public class SimpleRequestWrapper
Class that wraps a Request. It delegates all methods except ones related to URL rewriting.
| Constructor Summary | |
|---|---|
SimpleRequestWrapper(Request request,
String path)
Constructor that receives a request and a path. |
|
SimpleRequestWrapper(Request request,
String serverName,
String path)
Constructor that receives a request, a server name and a path. |
|
| Method Summary | |
|---|---|
String |
getPath()
Returns the path portion of the request, which starts with a "/" and contains everything up to the start of the query parameters. |
String |
getServerName()
Returns the host name of the server to which the request was sent. |
| Methods inherited from class org.apache.tapestry5.services.DelegatingRequest |
|---|
getAttribute, getContextPath, getDateHeader, getHeader, getHeaderNames, getLocale, getMethod, getParameter, getParameterNames, getParameters, getSession, isRequestedSessionIdValid, isSecure, isXHR, setAttribute, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleRequestWrapper(Request request,
String serverName,
String path)
request - a Request. It cannot be null.serverName - a String.path - a String. It cannot be null.
public SimpleRequestWrapper(Request request,
String path)
request - a Request. It cannot be null.path - a String. It cannot be null.| Method Detail |
|---|
public String getPath()
Request
getPath in interface RequestgetPath in class DelegatingRequestpublic String getServerName()
RequestHost header, if any, or the resolved server name, or the server IP address.
getServerName in interface RequestgetServerName in class DelegatingRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||