public interface IRequestResponse
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(javax.servlet.http.Cookie cookie) |
void |
addHeader(String name,
String value) |
String |
getApplicationURL()
Return the base URL to the web application from the current requests.
|
javax.servlet.http.Cookie[] |
getCookies() |
UploadItem[] |
getFileParameter(String name) |
String[] |
getFileParameters() |
String |
getHostURL() |
OutputStream |
getOutputStream(String contentType,
String encoding,
int contentLength) |
Writer |
getOutputWriter(String contentType,
String encoding) |
String |
getParameter(String name) |
String[] |
getParameterNames() |
String[] |
getParameters(String name) |
String |
getQueryString() |
String |
getRemoteUser()
The "remote" user ID from a server request, if present.
|
String |
getRequestURI()
Must return the path part of a request URL.
|
IServerSession |
getServerSession(boolean create)
Returns a wrapper for a
HttpSession. |
String |
getUserAgent() |
String |
getWebappContext()
Returns the webapp context as either an empty string for the ROOT context or a string starting without a slash and always ending
in one, like "viewpoint/".
|
void |
redirect(String newUrl)
Send a redirect response to the client.
|
void |
releaseUploads()
Called when uploaded files are no longer needed; this can then discard of them.
|
void |
sendError(int httpErrorCode,
String message)
Send an error back to the client.
|
void |
setExpiry(int cacheTime) |
void |
setNoCache() |
@Nonnull String getRequestURI()
void releaseUploads()
@Nullable String getRemoteUser()
@Nullable IServerSession getServerSession(boolean create)
HttpSession. If "create" is true the session will be
created if it does not exist in which case the call will never return null.create - @Nonnull String getApplicationURL()
@Nonnull UploadItem[] getFileParameter(@Nonnull String name) throws Exception
Exceptionvoid setNoCache()
@Nonnull Writer getOutputWriter(@Nonnull String contentType, @Nullable String encoding) throws Exception
Exception@Nonnull OutputStream getOutputStream(@Nonnull String contentType, @Nullable String encoding, int contentLength) throws Exception
Exception@Nonnull String getWebappContext()
void addCookie(@Nonnull javax.servlet.http.Cookie cookie)
@Nonnull javax.servlet.http.Cookie[] getCookies()
void setExpiry(int cacheTime)
void redirect(@Nonnull String newUrl) throws Exception
newUrl - ExceptionCopyright © 2017 etc.to. All rights reserved.