@Override protected void configureInterceptors(ServerFactoryBean svrFactory) { super.configureInterceptors(svrFactory); // install auditing-related interceptors if the user has not switched auditing off if (auditStrategy != null) { if (wsTransactionConfiguration.isAuditRequestPayload()) { svrFactory.getInInterceptors().add(new InPayloadExtractorInterceptor(SOAP_BODY)); } AuditResponseInterceptor<AuditDatasetType> auditInterceptor = new AuditResponseInterceptor<>(auditStrategy, auditContext,false, correlator, true); svrFactory.getInInterceptors().add(auditInterceptor); svrFactory.getInFaultInterceptors().add(auditInterceptor); } } }
protected void configureInterceptors(ServerFactoryBean svrFactory) { super.configureInterceptors(svrFactory); // install auditing-related interceptors if the user has not switched auditing off if (auditStrategy != null) { if (wsTransactionConfiguration.isAuditRequestPayload()) { svrFactory.getInInterceptors().add(new InPayloadExtractorInterceptor(SOAP_BODY)); } svrFactory.getInInterceptors().add(new AuditInRequestInterceptor<>( auditStrategy, auditContext, wsTransactionConfiguration)); AuditResponseInterceptor<AuditDatasetType> auditInterceptor = new AuditResponseInterceptor<>(auditStrategy, auditContext, true, null, false); svrFactory.getOutInterceptors().add(auditInterceptor); svrFactory.getOutFaultInterceptors().add(auditInterceptor); } }
public ServerFactoryBean createServerFactory(Object serviceImpl) { ServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); configureService(svrFactory, serviceImpl); configureBinding(svrFactory); configureInterceptors(svrFactory); svrFactory.setStart(false); return svrFactory; }