Class JsonpJaxrsWriterInterceptor
java.lang.Object
org.apache.cxf.jaxrs.provider.jsonp.JsonpJaxrsWriterInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.ext.WriterInterceptor
public class JsonpJaxrsWriterInterceptor
extends Object
implements jakarta.ws.rs.ext.WriterInterceptor
Appends the jsonp callback to json responses when the '_jsonp' parameter has been set in the querystring.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) protected StringgetCallbackValue(org.apache.cxf.message.Message message) voidsetMediaType(String mediaType) voidsetPaddingEnd(String paddingEnd)
-
Constructor Details
-
JsonpJaxrsWriterInterceptor
public JsonpJaxrsWriterInterceptor()
-
-
Method Details
-
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
-
setMediaType
-
getMediaType
-
setPaddingEnd
-
getPaddingEnd
-
getCallbackValue
-