public class DelegatingRequest extends Object implements org.apache.tapestry5.services.Request
Request, delegating all its methods to it.| Constructor and Description |
|---|
DelegatingRequest()
No-arg constructor.
|
DelegatingRequest(org.apache.tapestry5.services.Request request)
Constructor that receives a
Request. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
String |
getContextPath() |
long |
getDateHeader(String name) |
String |
getHeader(String name) |
List<String> |
getHeaderNames() |
Locale |
getLocale() |
int |
getLocalPort() |
String |
getMethod() |
String |
getParameter(String name) |
List<String> |
getParameterNames() |
String[] |
getParameters(String name) |
String |
getPath() |
String |
getRemoteHost() |
String |
getServerName() |
int |
getServerPort() |
org.apache.tapestry5.services.Session |
getSession(boolean create) |
boolean |
isRequestedSessionIdValid() |
boolean |
isSecure() |
boolean |
isXHR() |
void |
setAttribute(String name,
Object value) |
void |
setRequest(org.apache.tapestry5.services.Request request)
Sets the delegate request.
|
public DelegatingRequest()
public DelegatingRequest(org.apache.tapestry5.services.Request request)
Request.request - a Request. It cannot be null.public void setRequest(org.apache.tapestry5.services.Request request)
request - a Request. It cannot be null.public org.apache.tapestry5.services.Session getSession(boolean create)
getSession in interface org.apache.tapestry5.services.Requestcreate - Request.getSession(boolean)public String getContextPath()
getContextPath in interface org.apache.tapestry5.services.RequestRequest.getContextPath()public List<String> getParameterNames()
getParameterNames in interface org.apache.tapestry5.services.RequestRequest.getParameterNames()public String getParameter(String name)
getParameter in interface org.apache.tapestry5.services.Requestname - Request.getParameter(java.lang.String)public String[] getParameters(String name)
getParameters in interface org.apache.tapestry5.services.Requestname - Request.getParameters(java.lang.String)public String getPath()
getPath in interface org.apache.tapestry5.services.RequestRequest.getPath()public Locale getLocale()
getLocale in interface org.apache.tapestry5.services.RequestRequest.getLocale()public List<String> getHeaderNames()
getHeaderNames in interface org.apache.tapestry5.services.RequestRequest.getHeaderNames()public long getDateHeader(String name)
getDateHeader in interface org.apache.tapestry5.services.Requestname - Request.getDateHeader(java.lang.String)public String getHeader(String name)
getHeader in interface org.apache.tapestry5.services.Requestname - Request.getHeader(java.lang.String)public boolean isXHR()
isXHR in interface org.apache.tapestry5.services.RequestRequest.isXHR()public boolean isSecure()
isSecure in interface org.apache.tapestry5.services.RequestRequest.isSecure()public String getServerName()
getServerName in interface org.apache.tapestry5.services.RequestRequest.getServerName()public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid in interface org.apache.tapestry5.services.RequestRequest.isRequestedSessionIdValid()public Object getAttribute(String name)
getAttribute in interface org.apache.tapestry5.services.Requestname - Request.getAttribute(java.lang.String)public void setAttribute(String name, Object value)
setAttribute in interface org.apache.tapestry5.services.Requestname - value - Request.setAttribute(java.lang.String,
java.lang.Object)public String getMethod()
getMethod in interface org.apache.tapestry5.services.RequestRequest.getMethod()public int getLocalPort()
getLocalPort in interface org.apache.tapestry5.services.RequestRequest.getLocalPort()public int getServerPort()
getServerPort in interface org.apache.tapestry5.services.RequestRequest.getServerPort()public String getRemoteHost()
getRemoteHost in interface org.apache.tapestry5.services.RequestRequest.getRemoteHost()Copyright © 2008-2013 Ars Machina Tecnologia da Informação Ltda.. All Rights Reserved.