Class HealthCheckHttpContext
java.lang.Object
org.apache.unomi.healthcheck.servlet.HealthCheckHttpContext
- All Implemented Interfaces:
org.osgi.service.http.HttpContext
A simple implementation of the
HttpContext interface that provides basic authentication for health checks.-
Field Summary
Fields inherited from interface org.osgi.service.http.HttpContext
AUTHENTICATION_TYPE, AUTHORIZATION, REMOTE_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanauthenticated(javax.servlet.http.HttpServletRequest request) booleanhandleSecurity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
-
Constructor Details
-
HealthCheckHttpContext
-
-
Method Details
-
handleSecurity
public boolean handleSecurity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException - Specified by:
handleSecurityin interfaceorg.osgi.service.http.HttpContext- Throws:
IOException
-
authenticated
protected boolean authenticated(javax.servlet.http.HttpServletRequest request) -
getResource
- Specified by:
getResourcein interfaceorg.osgi.service.http.HttpContext
-
getMimeType
- Specified by:
getMimeTypein interfaceorg.osgi.service.http.HttpContext
-