HttpServletResponse object.
This provides the bridge from the Servlet HttpServletResponse to the Jetty Core Response
via the ServletContextResponse.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ServletChannel | |
| private final ServletContextHandler. | |
| private final ServletContextHandler. | |
| private static final EnumSet | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCookie(Cookie
the Cookie to return to the client cookie)Implements jakarta. |
| public void | |
| public void | addDateHeader(String
the name of the header to set name, long the additional date value date)Implements jakarta. |
| public void | addHeader(String
the name of the header name, String the additional header value If it contains octet string, it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt) value)Implements jakarta. |
| public void | addIntHeader(String
the name of the header name, int the assigned integer value value)Implements jakarta. |
| public boolean | containsHeader(String
the header name name)Implements jakarta. |
| public String | encodeRedirectURL(String
the url to be encoded. url)Implements jakarta. sendRedirect method or, if encoding is not needed, returns the
URL unchanged.
|
| public String | encodeURL(String
the url to be encoded. url)Implements jakarta. |
| public void | flushBuffer()
Implements jakarta. |
| public int | getBufferSize()
Implements jakarta. |
| public String | getCharacterEncoding()
Implements jakarta. |
| public long | |
| public String | getContentType()
Implements jakarta. |
| public String | getHeader(String
the name of the response header whose value to return name)Implements jakarta. |
| public Collection | getHeaderNames()
Implements jakarta. |
| public Collection | getHeaders(String
the name of the response header whose values to return name)Implements jakarta. |
| public Locale | getLocale()
Implements jakarta. setLocale method.
|
| public ServletOutputStream | getOutputStream()
Implements jakarta. ServletOutputStream suitable for writing binary data in the response.
|
| public Response | Returns: The coreResponse associated with the API response.
This may differ from the ServletContextResponse as wrapped by the
ServletContextHandler as it may have subsequently been wrapped before
being passed to ServletChannel#associate(Request, Response, Callback).
|
| public ServletChannel | |
| public ServletContextHandler. | |
| public ServletContextHandler. | Returns: TheServletResponseInfo for the request as provided by
ServletContextResponse when wrapped by the ServletContextHandler.
|
| public int | getStatus()
Implements jakarta. |
| public Supplier | getTrailerFields()
Overrides default jakarta. |
| public PrintWriter | getWriter()
Implements jakarta. PrintWriter object that can send character text to the client.
|
| public boolean | isCommitted()
Implements jakarta. |
| public void | reset()
Implements jakarta. |
| public void | resetBuffer()
Implements jakarta. |
| public void | sendError(int
the error status code sc, String the descriptive message msg)Implements jakarta. Sends an error response to the client using the specified status and clears the buffer. |
| public void | sendError(int
the error status code sc)Implements jakarta. |
| public void | sendRedirect(String
the redirect location URL location)Implements jakarta. |
| public void | sendRedirect(int
the redirect status code code, String the location to send in location)Location headersSends a response with one of the 300 series redirection codes. |
| public void | setBufferSize(int
the preferred buffer size size)Implements jakarta. |
| public void | setCharacterEncoding(String
a String specifying only the character set defined by IANA Character Sets
(http://www.iana.org/assignments/character-sets) or encoding)nullImplements jakarta. |
| public void | setContentLength(int
an integer specifying the length of the content being returned to the client; sets the Content-Length
header len)Implements jakarta. |
| public void | setContentLengthLong(long
a long specifying the length of the content being returned to the client; sets the Content-Length header len)Implements jakarta. |
| public void | setContentType(String
a contentType)String specifying the MIME type of the content or nullImplements jakarta. |
| public void | setDateHeader(String
the name of the header to set name, long the assigned date value date)Implements jakarta. |
| public void | setHeader(String
the name of the header name, String the header value If it contains octet string, it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt) value)Implements jakarta. |
| public void | setIntHeader(String
the name of the header name, int the assigned integer value value)Implements jakarta. |
| public void | setLocale(Locale
the locale of the response or {code @null} locale)Implements jakarta. |
| public void | setStatus(int
the status code sc)Implements jakarta. |
| public void | setTrailerFields(Supplier<Map<String, String>>
the supplier of trailer headers trailers)Overrides default jakarta. |
| public String |