public class HealthCheckExecutorServlet
extends javax.servlet.http.HttpServlet
Useful in combination with load balancers.
NOTE: This servlet registers directly (low-level) at the HttpService and is not processed by sling (better performance, fewer dependencies, no authentication required, 503 can be sent without the progress tracker information).
| Modifier and Type | Field and Description |
|---|---|
static String |
CORS_ORIGIN_HEADER_DEFAULT_VALUE |
static String |
PARAM_SPLIT_REGEX |
static String |
PROPERTY_CORS_ORIGIN_HEADER_VALUE |
static String |
PROPERTY_DISABLED |
static String |
PROPERTY_SERVLET_PATH |
| Constructor and Description |
|---|
HealthCheckExecutorServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
deactivate(org.osgi.service.component.ComponentContext componentContext) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String format) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String PARAM_SPLIT_REGEX
public static final String PROPERTY_SERVLET_PATH
public static final String PROPERTY_DISABLED
public static final String CORS_ORIGIN_HEADER_DEFAULT_VALUE
public static final String PROPERTY_CORS_ORIGIN_HEADER_VALUE
@Activate protected final void activate(org.osgi.service.component.ComponentContext context)
@Deactivate public void deactivate(org.osgi.service.component.ComponentContext componentContext)
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String format)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2013–2017 The Apache Software Foundation. All rights reserved.