Class JsonpInInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.jaxrs.provider.jsonp.JsonpInInterceptor
- All Implemented Interfaces:
Interceptor<Message>,PhaseInterceptor<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(Message message) voidhandleMessage(Message message) Intercepts a 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
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
-
getCallbackValue
-
setCallbackParam
-
getCallbackParam
-
setAcceptType
-
getAcceptType
-
setMediaType
-
getMediaType
-
setDefaultCallback
-
getDefaultCallback
-