Class ReusableEntityFilter

java.lang.Object
org.opengis.cite.eogeojson10.ReusableEntityFilter
All Implemented Interfaces:
jakarta.ws.rs.client.ClientResponseFilter

public class ReusableEntityFilter extends Object implements jakarta.ws.rs.client.ClientResponseFilter
Buffers the (response) entity so it can be read multiple times.

WARNING: The entity InputStream must be reset after each read attempt.

  • Constructor Details

    • ReusableEntityFilter

      public ReusableEntityFilter()
  • Method Details

    • filter

      public void filter(jakarta.ws.rs.client.ClientRequestContext requestContext, jakarta.ws.rs.client.ClientResponseContext responseContext) throws IOException
      Specified by:
      filter in interface jakarta.ws.rs.client.ClientResponseFilter
      Throws:
      IOException