BBjHttpResponse (Deprecated)
BBjHttpResponse is deprecated for BBj 21.00 and higher, and has been replaced by BBxServletResponse.
Description
In BBj 12.00 and higher, BBjHttpResponse controls how HTTP protocol related data is returned to the client when handling a BBjServletEvent.
Creation
BBjServletEvent > BBjHttpResponse
A BBjHttpResponse object is obtained with the following BBjServletEvent method:
Return Value |
Method |
BBjHttpResponse |
Methods of BBjHttpResponse
Return Value |
Method |
---|---|
addCookie(string name) |
|
void |
addHeader(string name, string value) |
boolean |
containsHeader(string name) |
string |
encodeRedirectURL(string url) |
string |
encodeURL(string url) |
string |
|
string |
|
string |
getHeader(string name) |
getHeaders(string name) |
|
Locale |
|
int |
|
void |
sendError(int error) |
void | sendError(int error, string msg |
void |
sendRedirect(string url) |
void |
setCharacterEncoding(string encoding) |
void |
setContentType(string mimeType) |
void |
setFile (string fileName) |
void |
setHeader(string name, string value) |
void |
setLocale(Locale locale) |
void |
setStatus(int code) |
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.