org.apache.cxf.jaxrs.provider.jsonp
Class JsonpJaxrsWriterInterceptor
java.lang.Object
org.apache.cxf.jaxrs.provider.jsonp.JsonpJaxrsWriterInterceptor
- All Implemented Interfaces:
- javax.ws.rs.ext.WriterInterceptor
public class JsonpJaxrsWriterInterceptor
- extends Object
- implements javax.ws.rs.ext.WriterInterceptor
Appends the jsonp callback to json responses when the '_jsonp' parameter has been set in the querystring.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonpJaxrsWriterInterceptor
public JsonpJaxrsWriterInterceptor()
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
aroundWriteTo
in interface javax.ws.rs.ext.WriterInterceptor
- Throws:
IOException
javax.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(Message message)
Apache CXF