public class TestRequestContext extends Object implements IRequestContext
| Constructor and Description |
|---|
TestRequestContext() |
| Modifier and Type | Method and Description |
|---|---|
DomApplication |
getApplication()
Return the DomApplication instance.
|
BrowserVersion |
getBrowserVersion() |
String |
getExtension()
Return the name extension of the input URL without it's "." character.
|
String |
getInputPath()
Return the input path relative to the webapp's root.
|
Writer |
getOutputWriter(String contentType,
String encoding)
Returns the buffered writer to use to generate text-based output to this context.
|
String |
getParameter(String name) |
String[] |
getParameterNames() |
String[] |
getParameters(String name) |
String |
getRelativePath(String rel)
Creates a full path from an application-relative path.
|
IRequestResponse |
getRequestResponse() |
IServerSession |
getServerSession(boolean create) |
AppSession |
getSession()
Return this-user's AppSession.
|
String |
getUserAgent()
Returns the value of the "User-Agent" header to determine the browser type.
|
WindowSession |
getWindowSession()
Return the WindowSession for this request.
|
@Nonnull public DomApplication getApplication()
IRequestContextgetApplication in interface IRequestContext@Nonnull public WindowSession getWindowSession()
IRequestContextgetWindowSession in interface IRequestContext@Nonnull public String getExtension()
IRequestContextgetExtension in interface IRequestContext@Nonnull public String getInputPath()
IRequestContextgetInputPath in interface IRequestContext@Nonnull public Writer getOutputWriter(@Nonnull String contentType, @Nullable String encoding) throws IOException
IRequestContextgetOutputWriter in interface IRequestContextIOException@Nonnull public String getRelativePath(@Nonnull String rel)
IRequestContextgetRelativePath in interface IRequestContext@Nonnull public AppSession getSession()
IRequestContextgetSession in interface IRequestContextpublic String getUserAgent()
IRequestContextgetUserAgent in interface IRequestContextpublic String getParameter(@Nonnull String name)
getParameter in interface IParameterInfo@Nonnull public String[] getParameterNames()
getParameterNames in interface IParameterInfo@Nonnull public String[] getParameters(@Nonnull String name)
getParameters in interface IParameterInfopublic BrowserVersion getBrowserVersion()
getBrowserVersion in interface IExtendedParameterInfo@Nonnull public IRequestResponse getRequestResponse()
getRequestResponse in interface IRequestContext@Nullable public IServerSession getServerSession(boolean create)
getServerSession in interface IRequestContextCopyright © 2017 etc.to. All rights reserved.