org.hippoecm.hst.pagecomposer.jaxrs.cxf.provider
Class JsonpPreStreamInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.hippoecm.hst.pagecomposer.jaxrs.cxf.provider.AbstractJsonpOutInterceptor
org.hippoecm.hst.pagecomposer.jaxrs.cxf.provider.JsonpPreStreamInterceptor
- 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 JsonpPreStreamInterceptor
- extends AbstractJsonpOutInterceptor
Appends the jsonp callback to json responses when the '_jsonp' parameter has been set in the querystring.
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor |
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonpPreStreamInterceptor
public JsonpPreStreamInterceptor()
handleMessage
public void handleMessage(org.apache.cxf.message.Message message)
throws org.apache.cxf.interceptor.Fault
- Throws:
org.apache.cxf.interceptor.Fault
setContentType
protected void setContentType(org.apache.cxf.message.Message message)
setMediaType
public void setMediaType(String mediaType)
getMediaType
public String getMediaType()
setPaddingEnd
public void setPaddingEnd(String paddingEnd)
getPaddingEnd
public String getPaddingEnd()
Copyright © 2008-2012 Hippo. All Rights Reserved.