use of de.rwth.idsg.steve.ocpp.soap.MessageIdInterceptor in project steve by RWTH-i5-IDSG.
the class OcppConfiguration method init.
@PostConstruct
public void init() {
List<Interceptor<? extends Message>> interceptors = asList(new MessageIdInterceptor(), fromAddressInterceptor);
List<Feature> logging = singletonList(LoggingFeatureProxy.INSTANCE.get());
createOcppService(ocpp12Server, "/CentralSystemServiceOCPP12", interceptors, logging);
createOcppService(ocpp15Server, "/CentralSystemServiceOCPP15", interceptors, logging);
createOcppService(ocpp16Server, "/CentralSystemServiceOCPP16", interceptors, logging);
// Just a dummy service to route incoming messages to the appropriate service version. This should be the last
// one to be created, since in MediatorInInterceptor we go over created/registered services and build a map.
//
List<Interceptor<? extends Message>> mediator = singletonList(new MediatorInInterceptor(springBus()));
createOcppService(ocpp12Server, CONFIG.getRouterEndpointPath(), mediator, Collections.emptyList());
}
Aggregations