|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.tapestry.DanubeRequest
public class DanubeRequest
WebRequest
interface implementation
Field Summary | |
---|---|
protected HTTPConnection |
connection
Reference connection |
protected HTTPSessionManager |
sessionManager
Session manager |
Constructor Summary | |
---|---|
DanubeRequest(HTTPConnection connection,
HTTPSessionManager sessionManager)
Constructor |
Method Summary | |
---|---|
void |
describeTo(DescriptionReceiver descriptionReceiver)
Does nothing |
void |
forward(String url)
Forwards internally to given URL |
String |
getActivationPath()
Returns component's path |
Object |
getAttribute(String name)
Returns attribute value |
List |
getAttributeNames()
Returns attribute names |
String |
getContextPath()
Returns context path |
String |
getHeader(String name)
Returns header's value |
Locale |
getLocale()
Returns locale |
List |
getParameterNames()
Returns parameter names as a list |
String |
getParameterValue(String name)
Returns parameter value |
String[] |
getParameterValues(String name)
Returns parameter's values |
String |
getPathInfo()
Returns path info |
String |
getRemoteUser()
Returns remote user |
String |
getRequestURI()
Returns request URI |
String |
getScheme()
Returns HTTP |
String |
getServerName()
Returns server's name |
int |
getServerPort()
Returns port request is served from. |
WebSession |
getSession(boolean create)
Returns session |
Principal |
getUserPrincipal()
Returns user principal |
boolean |
isUserInRole(String role)
Checks if user is in role |
void |
setAttribute(String name,
Object value)
Sets attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HTTPConnection connection
protected HTTPSessionManager sessionManager
Constructor Detail |
---|
public DanubeRequest(HTTPConnection connection, HTTPSessionManager sessionManager)
connection
- connectionsessionManager
- session managerMethod Detail |
---|
public List getParameterNames()
getParameterNames
in interface WebRequest
public String getParameterValue(String name)
getParameterValue
in interface WebRequest
name
- parameter's name
public String[] getParameterValues(String name)
getParameterValues
in interface WebRequest
name
- parameter's name
public String getContextPath()
getContextPath
in interface WebRequest
public WebSession getSession(boolean create)
getSession
in interface WebRequest
create
- if true
new session is going to be create if it doesn't exist already
public String getScheme()
HTTP
getScheme
in interface WebRequest
public String getServerName()
getServerName
in interface WebRequest
public int getServerPort()
getServerPort
in interface WebRequest
public String getRequestURI()
getRequestURI
in interface WebRequest
public void forward(String url)
forward
in interface WebRequest
url
- URI to be forwarded topublic String getActivationPath()
getActivationPath
in interface WebRequest
public String getPathInfo()
getPathInfo
in interface WebRequest
public Locale getLocale()
getLocale
in interface WebRequest
public String getHeader(String name)
getHeader
in interface WebRequest
name
- headers name
public String getRemoteUser()
getRemoteUser
in interface WebRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface WebRequest
public boolean isUserInRole(String role)
isUserInRole
in interface WebRequest
role
- role
true
if user is in rolepublic List getAttributeNames()
getAttributeNames
in interface AttributeHolder
public Object getAttribute(String name)
getAttribute
in interface AttributeHolder
name
- attribute's name
public void setAttribute(String name, Object value)
setAttribute
in interface AttributeHolder
name
- attribute's namevalue
- attribute's valuepublic void describeTo(DescriptionReceiver descriptionReceiver)
describeTo
in interface Describable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |