BBxServletResponse
Description
In BBj 21.00 and higher, this class provides HTTP-specific functionality in sending a response for a BBxServlet. For example, it has methods to access HTTP headers and cookies.
Creation
BBjAPI > BBjAdmin > BBjJettyServerConfiguration > BBjJettyContextConfiguration > BBxServlet > BBxServletContext > BBxServletResponse
A BBxServletResponse object is created through the following BBxServletContext method:
| Return Value | Method |
|---|---|
| BBxServletResponse | getResponse() |
Methods of BBxServletResponse
|
Return Value |
Method |
|---|---|
|
void |
addCookie(BBjCookie cookie) |
|
void |
addHeader(string name, string value) |
|
boolean |
containsHeader(string name) |
|
BBjCookie |
createCookie(string name) |
|
string |
encodeRedirectURL(string url) |
|
string |
encodeURL(string url) |
|
void |
|
|
string |
|
|
string |
|
|
string |
getHeader(string name) |
|
BBjVector |
|
|
BBjVector |
getHeaders(string name) |
| HttpServletResponse | getHttpServletResponse() |
|
Locale |
|
|
ServletOutputStream |
|
|
int |
|
|
boolean |
|
|
void |
reset() |
|
void |
|
|
void |
sendError(int statusCode) |
|
void |
sendError(int StatusCode, string message) |
|
void |
sendRedirect(string location) |
|
void |
setBufferSize(int size) |
|
void |
setCharacterEncoding(string charset) |
|
void |
setContentLength(int length) |
|
void |
setContentType(string type) |
|
void |
setDateHeader(string name, long date) |
|
void |
setHeader(string name, string value) |
|
void |
setLocale(Locale locale) |
|
void |
setStatus(int statusCode) |