@Override public synchronized Object create() { this.getInInterceptors().addAll(getLogInInterceptors()); this.getOutInterceptors().addAll(getLogOutInterceptors()); this.setServiceClass(config.getServiceClass()); this.setAddress(config.getWsAddress()); return super.create(); }
public List<Interceptor<? extends Message>> getLogOutInterceptors() { List<Interceptor<? extends Message>> outInterceptors = new ArrayList<Interceptor<? extends Message>>(); if (config.isCxfDebug()) { LoggingOutInterceptor loggingOutInterceptor = new LoggingOutInterceptor(); loggingOutInterceptor.setPrettyLogging(true); outInterceptors.add(loggingOutInterceptor); } return outInterceptors; }