Class InterceptorResource
java.lang.Object
fr.gouv.vitam.elastic.kibana.interceptor.rest.InterceptorResource
InterceptorResource : intercept request between elastic and kibana replace underscore by sharp and suppress
undesired header
-
Constructor Summary
ConstructorDescriptionInterceptorResource
(InterceptorConfiguration interceptorConfiguration) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
handleHeadElasticRequestFromKibana
(javax.ws.rs.core.UriInfo info, String url, javax.servlet.http.HttpServletRequest req, javax.ws.rs.core.HttpHeaders headers) Juste Filter the request not the responsejavax.ws.rs.core.Response
process
(String url, javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest req, javax.ws.rs.core.HttpHeaders headers) Filter kibana request and response
-
Constructor Details
-
InterceptorResource
Constructor
-
-
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
- urlinfo
- UriInforeq
- HttpServletRequestheaders
- 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
- urlinfo
- UriInforeq
- HttpServletRequestheaders
- HttpHeaders- Returns:
- the given elasticsearch Response filtered with sharp
- Throws:
IOException
- IOException
-