Class JsonpPostStreamInterceptor
- java.lang.Object
-
- org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
-
- org.apache.cxf.jaxrs.provider.jsonp.AbstractJsonpOutInterceptor
-
- org.apache.cxf.jaxrs.provider.jsonp.JsonpPostStreamInterceptor
-
- All Implemented Interfaces:
Interceptor<Message>,PhaseInterceptor<Message>
public class JsonpPostStreamInterceptor extends AbstractJsonpOutInterceptor
Appends the jsonp callback to json responses when the '_jsonp' parameter has been set in the querystring.
-
-
Constructor Summary
Constructors Constructor Description JsonpPostStreamInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPaddingEnd()voidhandleMessage(Message message)Intercepts a message.voidsetPaddingEnd(String paddingEnd)-
Methods inherited from class org.apache.cxf.jaxrs.provider.jsonp.AbstractJsonpOutInterceptor
getCallbackValue, writeValue
-
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
-
-
-
Method Detail
-
handleMessage
public void handleMessage(Message message) throws Fault
Description copied from interface:InterceptorIntercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.- Throws:
Fault
-
setPaddingEnd
public void setPaddingEnd(String paddingEnd)
-
getPaddingEnd
public String getPaddingEnd()
-
-