Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/org/gridsuite/gateway/GatewayConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public RouteLocator myRoutes(RouteLocatorBuilder builder, ApplicationContext con
.route(p -> context.getBean(DynamicMarginCalculationServer.class).getRoute(p))
.route(p -> context.getBean(VoltageInitServer.class).getRoute(p))
.route(p -> context.getBean(ShortCircuitServer.class).getRoute(p))
.route(p -> context.getBean(StateEstimationServer.class).getRoute(p))
.route(p -> context.getBean(StudyConfigServer.class).getRoute(p))
.route(p -> context.getBean(GeoDataServer.class).getRoute(p))
.route(p -> context.getBean(PccMinServer.class).getRoute(p))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
Copyright (c) 2026, RTE (http://www.rte-france.com)
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.gridsuite.gateway.endpoints;

import org.gridsuite.gateway.ServiceURIsConfig;
import org.springframework.stereotype.Component;

/**
* @author David BRAQUART <david.braquart at rte-france.com>
*/
@Component(value = StateEstimationServer.ENDPOINT_NAME)
public class StateEstimationServer implements EndPointServer {

public static final String ENDPOINT_NAME = "state-estimation";

private final ServiceURIsConfig servicesURIsConfig;

public StateEstimationServer(ServiceURIsConfig servicesURIsConfig) {
this.servicesURIsConfig = servicesURIsConfig;
}

@Override
public String getEndpointBaseUri() {
return servicesURIsConfig.getStateEstimationServerBaseUri();
}

@Override
public String getEndpointName() {
return ENDPOINT_NAME;
}
}