
BBjHttpResponse
Creation
|
+-- BBjHttpResponse
Description
In BBj 12.0 and higher, BBjHttpResponse controls how HTTP protocol related data is returned to the client when handling a BBjServletEvent.
Creation
A BBjHttpResponse object is obtained with the following BBjServletEvent method:
Return Value |
Method |
BBjHttpResponse |
getHttpResponse() |
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 errorCode) |
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.