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

flushBuffer()

string

getCharacterEncoding()

string

getContentType()

string

getHeader(string name)

BBjVector

getHeaderNames()

BBjVector

getHeaders(string name)

HttpServletResponse getHttpServletResponse()

Locale

getLocale()

ServletOutputStream

getOutputStream()

int

getStatus()

boolean

isCommitted()

void

reset()

void

resetBuffer()

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)

See Also

BBxServlet

BBxServlet Tutorial

BBxServletResponse

BBxServletContext