Class JsonWithPaddingInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
@Priority(4100) public class JsonWithPaddingInterceptor extends Object implements jakarta.ws.rs.ext.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(jakarta.ws.rs.ext.WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-