Class NotificationTransportMock

java.lang.Object
fr.paris.lutece.plugins.librarynotifygru.rs.service.NotificationTransportMock
All Implemented Interfaces:
INotificationTransportProvider

public final class NotificationTransportMock extends Object implements INotificationTransportProvider
Default NotificationTransport implementation, which not use ApiManager token auth
  • Constructor Details

    • NotificationTransportMock

      public NotificationTransportMock()
      Simple Constructor
    • NotificationTransportMock

      public NotificationTransportMock(IHttpTransportProvider httpTransport)
      Constructor with IHttpTransportProvider parameter
      Parameters:
      httpTransport - the provider to use
  • Method Details

    • send

      public fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse send(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
      Description copied from interface: INotificationTransportProvider
      Send a Notification GRU can throw AppException in case of problem with the JSON request
      Specified by:
      send in interface INotificationTransportProvider
      Parameters:
      notification - the notification
      Returns:
      a notifyGruResponse