BBjspWebResponse (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, BBjspWebResponse controls how HTTP protocol related data is returned to the client when handling a BBjspWebRequest in the BBJSP framework.
Creation
BBJSP > BBjspPageContext > BBjspWebResponse
The BBjspWebResponse is created through the following BBjspPageContext method:
Return Value |
Method |
---|---|
BBjspWebResponse |
Methods of BBjspWebResponse
Return Value |
Method |
---|---|
void |
|
void |
addHeader(string name, string value) |
boolean |
containsHeader(string name) |
createCookie(string name) |
|
string |
encodeRedirectURL(string url) |
string |
encodeURL(string url) |
string |
|
string |
|
string |
getHeader(string name) |
getHeaders(string name) |
|
Locale |
|
ServletOutputStream |
|
int |
|
void |
sendError(int error) |
void |
sendError(int error, string message) |
void |
sendRedirect(string location) |
void |
setCharacterEncoding(string charset) |
void |
setContentType(string type) |
void |
setHeader(string name, string value) |
void |
setLocale(Locale locale) |
void |
setStatus(int status) |
Example
This example demonstrates how this works in a BBJSP servlet
class public MyServlet |