X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Fui-server%2FUIHttpServer.ts;h=60bd7fdcce2216e465a2bb01c607dd98dbfea4f3;hb=aef5c03ddd1489b52df3801284d704342d60a41c;hp=7b777b86040c3cba972d886da3df9a11dbab999a;hpb=7cb5b17fac198fe3ecd009ac4c692c0d88dd051e;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ui-server/UIHttpServer.ts b/src/charging-station/ui-server/UIHttpServer.ts index 7b777b86..60bd7fdc 100644 --- a/src/charging-station/ui-server/UIHttpServer.ts +++ b/src/charging-station/ui-server/UIHttpServer.ts @@ -5,18 +5,18 @@ import { StatusCodes } from 'http-status-codes'; import BaseError from '../../exception/BaseError'; import type { UIServerConfiguration } from '../../types/ConfigurationData'; import { - ProcedureName, - Protocol, - ProtocolRequest, - ProtocolResponse, - ProtocolVersion, - RequestPayload, + type ProcedureName, + type Protocol, + type ProtocolRequest, + type ProtocolResponse, + type ProtocolVersion, + type RequestPayload, ResponseStatus, } from '../../types/UIProtocol'; import logger from '../../utils/Logger'; import Utils from '../../utils/Utils'; import { AbstractUIServer } from './AbstractUIServer'; -import { UIServiceUtils } from './ui-services/UIServiceUtils'; +import { UIServerUtils } from './UIServerUtils'; const moduleName = 'UIHttpServer'; @@ -90,7 +90,7 @@ export default class UIHttpServer extends AbstractUIServer { this.responseHandlers.set(uuid, res); try { const fullProtocol = `${protocol}${version}`; - if (UIServiceUtils.isProtocolAndVersionSupported(fullProtocol) === false) { + if (UIServerUtils.isProtocolAndVersionSupported(fullProtocol) === false) { throw new BaseError(`Unsupported UI protocol version: '${fullProtocol}'`); } this.registerProtocolVersionUIService(version);