GenericStatusServlet that uses javax.servlet and NOT jakarta.servlet
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final GenericStatusServlet | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doGet(HttpServletRequest
an req, HttpServletResponse HttpServletRequest object that
contains the request the client has made
of the servletan resp)HttpServletResponse object that
contains the response the servlet sends
to the clientOverrides javax. Called by the server (via the |
| delegate | back to summary |
|---|---|
| private final GenericStatusServlet delegate | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| LiquibaseStatusServlet | back to summary |
|---|---|
| public LiquibaseStatusServlet() | |
| doGet | back to summary |
|---|---|
| protected void doGet(HttpServletRequest req, HttpServletResponse resp) Overrides javax. Doc from javax. Called by the server (via the Overriding this method to support a GET request also automatically supports an HTTP HEAD request. A HEAD request is a GET request that returns no body in the response, only the request header fields. When overriding this method, read the request data,
write the response headers, get the response's writer or
output stream object, and finally, write the response data.
It's best to include content type and encoding. When using
a The servlet container must write the headers before committing the response, because in HTTP the headers must be sent before the response body. Where possible, set the Content-Length header (with the
When using HTTP 1.1 chunked encoding (which means that the response has a Transfer-Encoding header), do not set the Content-Length header. The GET method should be safe, that is, without any side effects for which users are held responsible. For example, most form queries have no side effects. If a client request is intended to change stored data, the request should use some other HTTP method. The GET method should also be idempotent, meaning that it can be safely repeated. Sometimes making a method safe also makes it idempotent. For example, repeating queries is both safe and idempotent, but buying a product online or modifying data is neither safe nor idempotent. If the request is incorrectly formatted,
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpServletRequest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getParameter(String key)
Implements abstract liquibase.
|
| public String |
| request | back to summary |
|---|---|
| private final HttpServletRequest request | |
| JavaxHttpServletRequest | back to summary |
|---|---|
| public JavaxHttpServletRequest(HttpServletRequest req) | |
| getParameter | back to summary |
|---|---|
| public String getParameter(String key) Implements abstract liquibase.
| |
| getRequestURI | back to summary |
|---|---|
| public String getRequestURI() Implements abstract liquibase.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpServletResponse |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PrintWriter | getWriter()
Implements abstract liquibase.
|
| public void | setContentType(String type)
Implements abstract liquibase.
|
| public void | setStatus(int status)
Implements abstract liquibase.
|
| response | back to summary |
|---|---|
| private final HttpServletResponse response | |
| JavaxHttpServletResponse | back to summary |
|---|---|
| public JavaxHttpServletResponse(HttpServletResponse resp) | |
| getWriter | back to summary |
|---|---|
| public PrintWriter getWriter() throws IOException Implements abstract liquibase.
| |
| setContentType | back to summary |
|---|---|
| public void setContentType(String type) Implements abstract liquibase.
| |
| setStatus | back to summary |
|---|---|
| public void setStatus(int status) Implements abstract liquibase.
| |