Class JsonWithPaddingInterceptor
java.lang.Object
org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonWithPaddingInterceptor
public JsonWithPaddingInterceptor()
-
-
Method Details
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException - Specified by:
aroundWriteTo
in interfaceWriterInterceptor
- Throws:
IOException
WebApplicationException
-