Class JsonWithPaddingInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
-
- All Implemented Interfaces:
WriterInterceptor
@Priority(4100) public class JsonWithPaddingInterceptor extends Object implements WriterInterceptor
AWriterInterceptorimplementation for JSONP format. This interceptor wraps a JSON stream obtained by a underlying JSON provider into a callback function that can be defined by theJSONPannotation.- Author:
- Michal Gajdos
- See Also:
JSONP
-
-
Constructor Summary
Constructors Constructor Description JsonWithPaddingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundWriteToin interfaceWriterInterceptor- Throws:
IOExceptionWebApplicationException
-
-