|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.testsupport.TestRequestContext
public class TestRequestContext
A dummy test request context used for testing.
Constructor Summary | |
---|---|
TestRequestContext()
|
Method Summary | |
---|---|
DomApplication |
getApplication()
Return the DomApplication instance. |
BrowserVersion |
getBrowserVersion()
|
java.lang.String |
getExtension()
Return the name extension of the input URL without it's "." character. |
java.lang.String |
getInputPath()
Return the input path relative to the webapp's root. |
java.io.Writer |
getOutputWriter()
Returns the writer to use to generate text-based output to this context. |
java.lang.String |
getParameter(java.lang.String name)
|
java.lang.String[] |
getParameterNames()
|
java.lang.String[] |
getParameters(java.lang.String name)
|
java.lang.String |
getRelativePath(java.lang.String rel)
Creates a full path from an application-relative path. |
java.lang.String |
getRemoteUser()
If the request has a "remoteUser", usually indicating the web server somehow logged in the user, this returns the user ID. |
AppSession |
getSession()
Return this-user's AppSession. |
java.lang.String |
getUserAgent()
Returns the value of the "User-Agent" header to determine the browser type. |
WindowSession |
getWindowSession()
Return the WindowSession for this request. |
boolean |
hasPermission(java.lang.String permissionName)
FIXME Does this need more? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestRequestContext()
Method Detail |
---|
public DomApplication getApplication()
IRequestContext
getApplication
in interface IRequestContext
public WindowSession getWindowSession()
IRequestContext
getWindowSession
in interface IRequestContext
public java.lang.String getExtension()
IRequestContext
getExtension
in interface IRequestContext
public java.lang.String getInputPath()
IRequestContext
getInputPath
in interface IRequestContext
public java.io.Writer getOutputWriter() throws java.io.IOException
IRequestContext
getOutputWriter
in interface IRequestContext
java.io.IOException
public java.lang.String getRelativePath(java.lang.String rel)
IRequestContext
getRelativePath
in interface IRequestContext
public AppSession getSession()
IRequestContext
getSession
in interface IRequestContext
public java.lang.String getUserAgent()
IRequestContext
getUserAgent
in interface IRequestContext
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface IParameterInfo
public java.lang.String[] getParameterNames()
getParameterNames
in interface IParameterInfo
public java.lang.String[] getParameters(java.lang.String name)
getParameters
in interface IParameterInfo
public java.lang.String getRemoteUser()
IRequestContext
UIContext
methods instead.
getRemoteUser
in interface IRequestContext
public BrowserVersion getBrowserVersion()
getBrowserVersion
in interface IExtendedParameterInfo
public boolean hasPermission(java.lang.String permissionName)
hasPermission
in interface IRequestContext
IRequestContext.hasPermission(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |