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);
}
Aggregations