Interface OcppServer

  • All Known Implementing Classes:
    OcppServerImpl

    public interface OcppServer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletionStage<eu.chargetime.ocpp.model.Confirmation> send​(java.util.UUID session, eu.chargetime.ocpp.model.Request request)
      Send message to EVCS.
    • Method Detail

      • send

        java.util.concurrent.CompletionStage<eu.chargetime.ocpp.model.Confirmation> send​(java.util.UUID session,
                                                                                         eu.chargetime.ocpp.model.Request request)
                                                                                  throws eu.chargetime.ocpp.OccurenceConstraintException,
                                                                                         eu.chargetime.ocpp.UnsupportedFeatureException,
                                                                                         eu.chargetime.ocpp.NotConnectedException
        Send message to EVCS.

        Example:

         send(session, request).whenComplete((confirmation, throwable) -> {
                this.logInfo(log, confirmation.toString());
         });
         
        Parameters:
        session - Current session
        request - Request that will be sent
        Returns:
        When the request has been sent and a confirmation is received
        Throws:
        eu.chargetime.ocpp.NotConnectedException - notConnectedException
        eu.chargetime.ocpp.UnsupportedFeatureException - unsupportedFeatureException
        eu.chargetime.ocpp.OccurenceConstraintException - occurenceConstraintException