Class NotificationTransportApiManagerRest

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

@ApplicationScoped @Named("library-notifygru.apiManagerTransport") public class NotificationTransportApiManagerRest extends Object
  • Field Details

  • Constructor Details

    • NotificationTransportApiManagerRest

      public NotificationTransportApiManagerRest()
      Simple Constructor
    • NotificationTransportApiManagerRest

      @Inject public NotificationTransportApiManagerRest(String strNotificationEndPoint, String strApiManagerEndPoint, String strApiManagerCredentials)
  • Method Details

    • setApiManagerEndPoint

      public void setApiManagerEndPoint(String strApiManagerEndPoint)
      setter of apiManagerEndPoint
      Parameters:
      strApiManagerEndPoint - value to use
    • setApiManagerCredentials

      public void setApiManagerCredentials(String strApiManagerCredentials)
      Sets the API Manager credentials
      Parameters:
      strApiManagerCredentials - the API Manager credentials
    • setNotificationEndPoint

      public void setNotificationEndPoint(String strNotificationEndPoint)
      setter of notificationEndPoint
      Parameters:
      strNotificationEndPoint - value to use
    • setHttpTransport

      public void setHttpTransport(IHttpTransportProvider httpTransport)
      setter of httpTransport
      Parameters:
      httpTransport - IHttpTransportProvider to use
    • send

      public fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse send(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
      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