Search in sources :

Example 1 with EndpointAssociationInterceptor

use of org.jboss.wsf.stack.cxf.interceptor.EndpointAssociationInterceptor in project jbossws-cxf by jbossws.

the class BusHolder method setInterceptors.

protected void setInterceptors(Bus bus, Deployment dep, Map<String, String> props) {
    // Install the EndpointAssociationInterceptor for linking every message exchange
    // with the proper spi Endpoint retrieved in CXFServletExt
    bus.getInInterceptors().add(new EndpointAssociationInterceptor());
    bus.getInInterceptors().add(new NsCtxSelectorStoreInterceptor());
    bus.getInInterceptors().add(new GracefulShutdownInterceptor());
    final String p = (props != null) ? props.get(Constants.JBWS_CXF_DISABLE_HANDLER_AUTH_CHECKS) : null;
    if ((p == null || (!"true".equalsIgnoreCase(p) && !"1".equalsIgnoreCase(p))) && !Boolean.getBoolean(Constants.JBWS_CXF_DISABLE_HANDLER_AUTH_CHECKS)) {
        bus.getInInterceptors().add(new HandlerAuthInterceptor());
    }
    final SOAPAddressRewriteMetadata sarm = dep.getAttachment(SOAPAddressRewriteMetadata.class);
    if (SoapAddressRewriteHelper.isPathRewriteRequired(sarm) || SoapAddressRewriteHelper.isSchemeRewriteRequired(sarm)) {
        bus.getInInterceptors().add(new WSDLSoapAddressRewriteInterceptor(sarm));
    }
    InterceptorUtils.addInterceptors(bus, props);
}
Also used : WSDLSoapAddressRewriteInterceptor(org.jboss.wsf.stack.cxf.interceptor.WSDLSoapAddressRewriteInterceptor) NsCtxSelectorStoreInterceptor(org.jboss.wsf.stack.cxf.interceptor.NsCtxSelectorStoreInterceptor) HandlerAuthInterceptor(org.jboss.wsf.stack.cxf.interceptor.HandlerAuthInterceptor) SOAPAddressRewriteMetadata(org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata) EndpointAssociationInterceptor(org.jboss.wsf.stack.cxf.interceptor.EndpointAssociationInterceptor) GracefulShutdownInterceptor(org.jboss.wsf.stack.cxf.interceptor.GracefulShutdownInterceptor)

Aggregations

SOAPAddressRewriteMetadata (org.jboss.wsf.spi.metadata.config.SOAPAddressRewriteMetadata)1 EndpointAssociationInterceptor (org.jboss.wsf.stack.cxf.interceptor.EndpointAssociationInterceptor)1 GracefulShutdownInterceptor (org.jboss.wsf.stack.cxf.interceptor.GracefulShutdownInterceptor)1 HandlerAuthInterceptor (org.jboss.wsf.stack.cxf.interceptor.HandlerAuthInterceptor)1 NsCtxSelectorStoreInterceptor (org.jboss.wsf.stack.cxf.interceptor.NsCtxSelectorStoreInterceptor)1 WSDLSoapAddressRewriteInterceptor (org.jboss.wsf.stack.cxf.interceptor.WSDLSoapAddressRewriteInterceptor)1