Class OutStreamSubstituteInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.openehealth.ipf.commons.ihe.ws.cxf.payload.OutStreamSubstituteInterceptor
- All Implemented Interfaces:
Interceptor<Message>
,PhaseInterceptor<Message>
CXF interceptor that substitutes message output stream
with a special wrapper that collects SOAP payload.
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WrappedOutputStream
getStreamWrapper
(Message message) Retrieves the instance of stream wrapper installed by this interceptor.void
handleMessage
(Message message) Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
OutStreamSubstituteInterceptor
public OutStreamSubstituteInterceptor()
-
-
Method Details
-
handleMessage
-
getStreamWrapper
Retrieves the instance of stream wrapper installed by this interceptor.- Parameters:
message
- CXF message which contains output stream as one of content types.- Returns:
- an instance of
WrappedOutputStream
. - Throws:
IllegalStateException
- when the stream wrapper instance could not be retrieved.
-