Class InterceptorResource

java.lang.Object
fr.gouv.vitam.elastic.kibana.interceptor.rest.InterceptorResource

@Path("/") public class InterceptorResource extends Object
InterceptorResource : intercept request between elastic and kibana replace underscore by sharp and suppress undesired header
  • Constructor Details

  • Method Details

    • handleHeadElasticRequestFromKibana

      @HEAD @Path("{url: .*}") public javax.ws.rs.core.Response handleHeadElasticRequestFromKibana(@Context javax.ws.rs.core.UriInfo info, @PathParam("url") String url, @Context javax.servlet.http.HttpServletRequest req, @Context javax.ws.rs.core.HttpHeaders headers)
      Juste Filter the request not the response
      Parameters:
      url - url
      info - UriInfo
      req - HttpServletRequest
      headers - HttpHeaders
      Returns:
      elasticSearch response.
    • process

      @GET @POST @OPTIONS @DELETE @PUT @Path("{url: .*}") public javax.ws.rs.core.Response process(@PathParam("url") String url, @Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest req, @Context javax.ws.rs.core.HttpHeaders headers) throws IOException
      Filter kibana request and response
      Parameters:
      url - url
      info - UriInfo
      req - HttpServletRequest
      headers - HttpHeaders
      Returns:
      the given elasticsearch Response filtered with sharp
      Throws:
      IOException - IOException