|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRequestContext
Interface representing the context for a request to the server. In a real server request this encapsulates HttpServletRequest and HttpServletResponse, and interfaces with those to get data. The interface should be used as much as possible, since JUnit tests cannot use the real server implementation of it (due to lack of HttpServlet* thingies there).
Method Summary | |
---|---|
DomApplication |
getApplication()
Return the DomApplication instance. |
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 |
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)
This checks if the currently logged on user has the named permission. |
Methods inherited from interface to.etc.domui.server.IExtendedParameterInfo |
---|
getBrowserVersion |
Methods inherited from interface to.etc.domui.server.IParameterInfo |
---|
getParameter, getParameterNames, getParameters |
Method Detail |
---|
@Nonnull DomApplication getApplication()
@Nonnull AppSession getSession()
@Nonnull WindowSession getWindowSession()
@Nonnull java.lang.String getExtension()
@Nonnull java.lang.String getInputPath()
@Nullable java.lang.String getUserAgent()
@Nullable java.lang.String getRemoteUser()
UIContext
methods instead.
@Nonnull java.lang.String getRelativePath(@Nonnull java.lang.String rel)
rel
-
@Nonnull java.io.Writer getOutputWriter() throws java.io.IOException
java.io.IOException
boolean hasPermission(@Nonnull java.lang.String permissionName)
permissionName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |