Search in sources :

Example 1 with ClientRequestFilterInterceptor

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

the class AbstractClient method setupOutInterceptorChain.

protected static PhaseInterceptorChain setupOutInterceptorChain(ClientConfiguration cfg) {
    PhaseManager pm = cfg.getBus().getExtension(PhaseManager.class);
    List<Interceptor<? extends Message>> i1 = cfg.getBus().getOutInterceptors();
    List<Interceptor<? extends Message>> i2 = cfg.getOutInterceptors();
    List<Interceptor<? extends Message>> i3 = cfg.getConduitSelector().getEndpoint().getOutInterceptors();
    PhaseInterceptorChain chain = new PhaseChainCache().get(pm.getOutPhases(), i1, i2, i3);
    chain.add(new ClientRequestFilterInterceptor());
    return chain;
}
Also used : PhaseInterceptorChain(org.apache.cxf.phase.PhaseInterceptorChain) PhaseManager(org.apache.cxf.phase.PhaseManager) Message(org.apache.cxf.message.Message) ClientRequestFilterInterceptor(org.apache.cxf.jaxrs.client.spec.ClientRequestFilterInterceptor) 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