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 boolean
authenticated
(javax.servlet.http.HttpServletRequest request) boolean
handleSecurity
(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:
handleSecurity
in interfaceorg.osgi.service.http.HttpContext
- Throws:
IOException
-
authenticated
protected boolean authenticated(javax.servlet.http.HttpServletRequest request) -
getResource
- Specified by:
getResource
in interfaceorg.osgi.service.http.HttpContext
-
getMimeType
- Specified by:
getMimeType
in interfaceorg.osgi.service.http.HttpContext
-