Java Code Examples for org.apache.cxf.phase.Phase#POST_STREAM
The following examples show how to use
org.apache.cxf.phase.Phase#POST_STREAM .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RedeliveryQueueImpl.java From cxf with Apache License 2.0 | 5 votes |
private void redeliver() throws Exception { LOG.log(Level.INFO, "Redelivering ... for " + (1 + retries)); String restartingPhase; if (message.getContent(Exception.class) != null) { message.removeContent(Exception.class); message.getExchange().put(Exception.class, null); // clean-up message for redelivery closeStreamResources(); message.removeContent(Node.class); } InputStream is = null; CachedOutputStream cos = (CachedOutputStream)message.get(RMMessageConstants.SAVED_CONTENT); is = cos.getInputStream(); message.setContent(InputStream.class, is); message = message.getExchange().getEndpoint().getBinding().createMessage(message); restartingPhase = Phase.POST_STREAM; // skip some interceptor chain phases for redelivery InterceptorChain chain = getRedeliveryInterceptorChain(message, restartingPhase); ListIterator<Interceptor<? extends Message>> iterator = chain.getIterator(); while (iterator.hasNext()) { Interceptor<? extends Message> incept = iterator.next(); if (incept.getClass().getName().equals(RMCaptureInInterceptor.class.getName())) { chain.remove(incept); } } message.getExchange().setInMessage(message); message.setInterceptorChain(chain); chain.doIntercept(message); Exception ex = message.getContent(Exception.class); if (null != ex) { throw ex; } }
Example 2
Source File: MediatorInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public MediatorInInterceptor() { super(Phase.POST_STREAM); addBefore(StaxInInterceptor.class.getName()); }
Example 3
Source File: PolicyLoggingInterceptor.java From cxf with Apache License 2.0 | 4 votes |
PolicyLoggingInterceptor(boolean o) { super(o ? Phase.POST_STREAM : Phase.POST_INVOKE); }
Example 4
Source File: XMLStreamReaderInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public XMLStreamReaderInInterceptor() { super(Phase.POST_STREAM); }
Example 5
Source File: PolicyVerificationOutInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public PolicyVerificationOutInterceptor() { super(Phase.POST_STREAM); }
Example 6
Source File: RMCaptureInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public RMCaptureInInterceptor() { super(Phase.POST_STREAM); addAfter(StaxInInterceptor.class.getName()); }
Example 7
Source File: XmlSecInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public XmlSecInInterceptor() { super(Phase.POST_STREAM); getAfter().add(StaxInInterceptor.class.getName()); }
Example 8
Source File: JsonpPostStreamInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public JsonpPostStreamInterceptor() { super(Phase.POST_STREAM); }
Example 9
Source File: XSLTInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public XSLTInInterceptor(String xsltPath) { super(Phase.POST_STREAM, StaxInInterceptor.class, null, xsltPath); }
Example 10
Source File: DepthRestrictingStreamInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public DepthRestrictingStreamInterceptor() { this(Phase.POST_STREAM); addAfter(StaxInInterceptor.class.getName()); }
Example 11
Source File: TransformInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public TransformInInterceptor() { this(Phase.POST_STREAM); addBefore(StaxInInterceptor.class.getName()); }
Example 12
Source File: FIStaxInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public FIStaxInInterceptor() { this(Phase.POST_STREAM); }
Example 13
Source File: StaxInInterceptor.java From cxf with Apache License 2.0 | 4 votes |
public StaxInInterceptor() { super(Phase.POST_STREAM); }