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 Modifier and Type Field Description static StringCALLBACK_KEYstatic StringCALLBACK_PARAMstatic StringDEFAULT_CALLBACK_VALUEstatic StringJSONP_TYPE
-
Constructor Summary
Constructors Constructor Description JsonpInInterceptor()JsonpInInterceptor(String phase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAcceptType()StringgetCallbackParam()protected StringgetCallbackValue(org.apache.cxf.message.Message message)StringgetDefaultCallback()StringgetMediaType()voidhandleMessage(org.apache.cxf.message.Message message)voidsetAcceptType(String acceptType)voidsetCallbackParam(String callbackParam)voidsetDefaultCallback(String defaultCallback)voidsetMediaType(String mediaType)
-
-
-
Field Detail
-
JSONP_TYPE
public static final String JSONP_TYPE
- See Also:
- Constant Field Values
-
CALLBACK_PARAM
public static final String CALLBACK_PARAM
- See Also:
- Constant Field Values
-
CALLBACK_KEY
public static final String CALLBACK_KEY
- See Also:
- Constant Field Values
-
DEFAULT_CALLBACK_VALUE
public static final String DEFAULT_CALLBACK_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JsonpInInterceptor
public JsonpInInterceptor()
-
JsonpInInterceptor
public JsonpInInterceptor(String phase)
-
-
Method Detail
-
handleMessage
public void handleMessage(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault- Throws:
org.apache.cxf.interceptor.Fault
-
getCallbackValue
protected String getCallbackValue(org.apache.cxf.message.Message message)
-
setCallbackParam
public void setCallbackParam(String callbackParam)
-
getCallbackParam
public String getCallbackParam()
-
setAcceptType
public void setAcceptType(String acceptType)
-
getAcceptType
public String getAcceptType()
-
setMediaType
public void setMediaType(String mediaType)
-
getMediaType
public String getMediaType()
-
setDefaultCallback
public void setDefaultCallback(String defaultCallback)
-
getDefaultCallback
public String getDefaultCallback()
-
-