Class JsonpInInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.jaxrs.provider.jsonp.JsonpInInterceptor
- All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
public class JsonpInInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
Sets a callback key in the message exchange for HTTP requests containing the '_jsonp' parameter in the
querystring.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetCallbackValue(org.apache.cxf.message.Message message) voidhandleMessage(org.apache.cxf.message.Message message) voidsetAcceptType(String acceptType) voidsetCallbackParam(String callbackParam) voidsetDefaultCallback(String defaultCallback) voidsetMediaType(String mediaType) Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Field Details
-
JSONP_TYPE
- See Also:
-
CALLBACK_PARAM
- See Also:
-
CALLBACK_KEY
- See Also:
-
DEFAULT_CALLBACK_VALUE
- See Also:
-
-
Constructor Details
-
JsonpInInterceptor
public JsonpInInterceptor() -
JsonpInInterceptor
-
-
Method Details
-
handleMessage
public void handleMessage(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault - Throws:
org.apache.cxf.interceptor.Fault
-
getCallbackValue
-
setCallbackParam
-
getCallbackParam
-
setAcceptType
-
getAcceptType
-
setMediaType
-
getMediaType
-
setDefaultCallback
-
getDefaultCallback
-