Class HeaderIdContainerFilter

  • All Implemented Interfaces:
    javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter

    @PreMatching
    @Priority(1000)
    public class HeaderIdContainerFilter
    extends java.lang.Object
    implements javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter
    Manage the headers from the server-side perspective.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)
      Extracts the ids from the headers to save it in the VitamSession
      void filter​(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HeaderIdContainerFilter

        public HeaderIdContainerFilter()
    • Method Detail

      • filter

        public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext)
        Extracts the ids from the headers to save it in the VitamSession
        Specified by:
        filter in interface javax.ws.rs.container.ContainerRequestFilter
        Parameters:
        requestContext - ContainerRequestFilter.filter(ContainerRequestContext)
        See Also:
        ContainerRequestFilter.filter(ContainerRequestContext)
      • filter

        public void filter​(javax.ws.rs.container.ContainerRequestContext requestContext,
                           javax.ws.rs.container.ContainerResponseContext responseContext)
                    throws java.io.IOException
        Specified by:
        filter in interface javax.ws.rs.container.ContainerResponseFilter
        Throws:
        java.io.IOException