|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 manager| Method Detail |
|---|
public List getParameterNames()
getParameterNames in interface WebRequestpublic String getParameterValue(String name)
getParameterValue in interface WebRequestname - parameter's name
public String[] getParameterValues(String name)
getParameterValues in interface WebRequestname - parameter's name
public String getContextPath()
getContextPath in interface WebRequestpublic WebSession getSession(boolean create)
getSession in interface WebRequestcreate - if true new session is going to be create if it doesn't exist already
public String getScheme()
HTTP
getScheme in interface WebRequestpublic String getServerName()
getServerName in interface WebRequestpublic int getServerPort()
getServerPort in interface WebRequestpublic String getRequestURI()
getRequestURI in interface WebRequestpublic void forward(String url)
forward in interface WebRequesturl - URI to be forwarded topublic String getActivationPath()
getActivationPath in interface WebRequestpublic String getPathInfo()
getPathInfo in interface WebRequestpublic Locale getLocale()
getLocale in interface WebRequestpublic String getHeader(String name)
getHeader in interface WebRequestname - headers name
public String getRemoteUser()
getRemoteUser in interface WebRequestpublic Principal getUserPrincipal()
getUserPrincipal in interface WebRequestpublic boolean isUserInRole(String role)
isUserInRole in interface WebRequestrole - role
true if user is in rolepublic List getAttributeNames()
getAttributeNames in interface AttributeHolderpublic Object getAttribute(String name)
getAttribute in interface AttributeHoldername - attribute's name
public void setAttribute(String name,
Object value)
setAttribute in interface AttributeHoldername - 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 | |||||||||