Search in sources :

Example 1 with ClientResponseFilterInterceptor

use of org.apache.cxf.jaxrs.client.spec.ClientResponseFilterInterceptor in project cxf by apache.

the class AbstractClient method setupInInterceptorChain.

protected static PhaseInterceptorChain setupInInterceptorChain(ClientConfiguration cfg) {
    PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class);
    List<Interceptor<? extends Message>> i1 = cfg.getBus().getInInterceptors();
    List<Interceptor<? extends Message>> i2 = cfg.getInInterceptors();
    List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getInInterceptors();
    PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getInPhases(), i1, i2, i3);
    chain.add(new ClientResponseFilterInterceptor());
    chain.setFaultObserver(setupInFaultObserver(cfg));
    return chain;
}
Also used : ClientResponseFilterInterceptor(org.apache.cxf.jaxrs.client.spec.ClientResponseFilterInterceptor) PhaseInterceptorChain(org.apache.cxf.phase.PhaseInterceptorChain) PhaseManager(org.apache.cxf.phase.PhaseManager) Message(org.apache.cxf.message.Message) StaxInEndingInterceptor(org.apache.cxf.interceptor.StaxInEndingInterceptor) ClientRequestFilterInterceptor(org.apache.cxf.jaxrs.client.spec.ClientRequestFilterInterceptor) AbstractPhaseInterceptor(org.apache.cxf.phase.AbstractPhaseInterceptor) WriterInterceptor(javax.ws.rs.ext.WriterInterceptor) ClientResponseFilterInterceptor(org.apache.cxf.jaxrs.client.spec.ClientResponseFilterInterceptor) AbstractOutDatabindingInterceptor(org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor) Interceptor(org.apache.cxf.interceptor.Interceptor) PhaseChainCache(org.apache.cxf.phase.PhaseChainCache)

Aggregations

WriterInterceptor (javax.ws.rs.ext.WriterInterceptor)1 AbstractOutDatabindingInterceptor (org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor)1 Interceptor (org.apache.cxf.interceptor.Interceptor)1 StaxInEndingInterceptor (org.apache.cxf.interceptor.StaxInEndingInterceptor)1 ClientRequestFilterInterceptor (org.apache.cxf.jaxrs.client.spec.ClientRequestFilterInterceptor)1 ClientResponseFilterInterceptor (org.apache.cxf.jaxrs.client.spec.ClientResponseFilterInterceptor)1 Message (org.apache.cxf.message.Message)1 AbstractPhaseInterceptor (org.apache.cxf.phase.AbstractPhaseInterceptor)1 PhaseChainCache (org.apache.cxf.phase.PhaseChainCache)1 PhaseInterceptorChain (org.apache.cxf.phase.PhaseInterceptorChain)1 PhaseManager (org.apache.cxf.phase.PhaseManager)1