|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.server.RequestContextImpl
public class RequestContextImpl
Method Summary | |
---|---|
protected void |
discard()
|
protected void |
flush()
|
DomApplication |
getApplication()
Return the DomApplication instance. |
java.lang.Object |
getAttribute(java.lang.String name)
|
BrowserVersion |
getBrowserVersion()
|
java.lang.String |
getExtension()
Return the name extension of the input URL without it's "." character. |
UploadItem[] |
getFileParameter(java.lang.String name)
|
java.lang.String[] |
getFileParameters()
Returns the names of all file parameters. |
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. |
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
AppSession |
getSession()
Get the session for this context. |
java.lang.String |
getUserAgent()
Returns the value of the "User-Agent" header to determine the browser type. |
WindowSession |
getWindowSession()
Gets this request's conversation. |
boolean |
hasPermission(java.lang.String permissionName)
This checks if the currently logged on user has the named permission. |
void |
internalSetWindowSession(WindowSession cm)
QUESTIONABLE. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final DomApplication getApplication()
IRequestContext
getApplication
in interface IRequestContext
IRequestContext.getApplication()
public final AppSession getSession()
getSession
in interface IRequestContext
IRequestContext.getSession()
public final void internalSetWindowSession(WindowSession cm)
cm
- public final WindowSession getWindowSession()
getWindowSession
in interface IRequestContext
IRequestContext.getWindowSession()
public java.lang.String getExtension()
IRequestContext
getExtension
in interface IRequestContext
IRequestContext.getExtension()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public final java.lang.String getInputPath()
IRequestContext
getInputPath
in interface IRequestContext
IRequestContext.getInputPath()
public java.lang.String getUserAgent()
IRequestContext
getUserAgent
in interface IRequestContext
IRequestContext.getUserAgent()
public BrowserVersion getBrowserVersion()
getBrowserVersion
in interface IExtendedParameterInfo
protected void flush() throws java.lang.Exception
java.lang.Exception
protected void discard() throws java.io.IOException
java.io.IOException
public java.lang.String getRelativePath(java.lang.String rel)
IRequestContext
getRelativePath
in interface IRequestContext
IRequestContext.getRelativePath(java.lang.String)
public java.io.Writer getOutputWriter() throws java.io.IOException
IRequestContext
getOutputWriter
in interface IRequestContext
java.io.IOException
IRequestContext.getOutputWriter()
public boolean hasPermission(java.lang.String permissionName)
IRequestContext
hasPermission
in interface IRequestContext
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface IParameterInfo
IParameterInfo.getParameter(java.lang.String)
public java.lang.String[] getParameters(java.lang.String name)
getParameters
in interface IParameterInfo
IParameterInfo.getParameters(java.lang.String)
public java.lang.String[] getParameterNames()
getParameterNames
in interface IParameterInfo
IParameterInfo.getParameterNames()
public java.lang.String[] getFileParameters()
public UploadItem[] getFileParameter(java.lang.String name)
public java.lang.String getRemoteUser()
IRequestContext
UIContext
methods instead.
getRemoteUser
in interface IRequestContext
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface IAttributeContainer
IAttributeContainer.getAttribute(java.lang.String)
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface IAttributeContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |