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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
-
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:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-