Class JsonWithPaddingInterceptor

java.lang.Object
org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor

@Priority(4100) public class JsonWithPaddingInterceptor extends Object implements javax.ws.rs.ext.WriterInterceptor
A WriterInterceptor implementation for JSONP format. This interceptor wraps a JSON stream obtained by a underlying JSON provider into a callback function that can be defined by the JSONP annotation.
Author:
Michal Gajdos
See Also:
  • Constructor Details

    • JsonWithPaddingInterceptor

      public JsonWithPaddingInterceptor()
  • Method Details

    • aroundWriteTo

      public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException
      Specified by:
      aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      javax.ws.rs.WebApplicationException