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 Details

    • JsonpJaxrsWriterInterceptor

      public JsonpJaxrsWriterInterceptor()
  • Method Details

    • aroundWriteTo

      public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      aroundWriteTo in interface jakarta.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • setMediaType

      public void setMediaType(String mediaType)
    • getMediaType

      public String getMediaType()
    • setPaddingEnd

      public void setPaddingEnd(String paddingEnd)
    • getPaddingEnd

      public String getPaddingEnd()
    • getCallbackValue

      protected String getCallbackValue(org.apache.cxf.message.Message message)