Interface ClientRequestFilter


  • public interface ClientRequestFilter
    An extension interface implemented by client request filters. Filters implementing this interface MUST be annotated with @Provider to be discovered by the runtime. This type of filters is supported only as part of the Client API.
    Since:
    2.0
    Author:
    Marek Potociar, Santiago Pericas-Geertsen
    See Also:
    ClientResponseFilter
    • Method Summary

      Modifier and Type Method Description
      void filter​(ClientRequestContext requestContext)
      Filter method called before a request has been dispatched to a client transport layer.
    • Method Detail

      • filter

        void filter​(ClientRequestContext requestContext)
             throws IOException
        Filter method called before a request has been dispatched to a client transport layer. Filters in the filter chain are ordered according to their javax.annotation.Priority class-level annotation value.
        Parameters:
        requestContext - request context.
        Throws:
        IOException - if an I/O exception occurs.