Class HealthCheckHttpContext

  • All Implemented Interfaces:
    org.osgi.service.http.HttpContext

    public class HealthCheckHttpContext
    extends Object
    implements org.osgi.service.http.HttpContext
    A simple implementation of the HttpContext interface that provides basic authentication for health checks.
    • Constructor Detail

      • HealthCheckHttpContext

        public HealthCheckHttpContext​(String realm)
    • Method Detail

      • handleSecurity

        public boolean handleSecurity​(javax.servlet.http.HttpServletRequest req,
                                      javax.servlet.http.HttpServletResponse res)
                               throws IOException
        Specified by:
        handleSecurity in interface org.osgi.service.http.HttpContext
        Throws:
        IOException
      • authenticated

        protected boolean authenticated​(javax.servlet.http.HttpServletRequest request)
      • getResource

        public URL getResource​(String s)
        Specified by:
        getResource in interface org.osgi.service.http.HttpContext
      • getMimeType

        public String getMimeType​(String s)
        Specified by:
        getMimeType in interface org.osgi.service.http.HttpContext