Class NotificationTransportRest
java.lang.Object
fr.paris.lutece.plugins.librarynotifygru.rs.service.NotificationTransportRest
- All Implemented Interfaces:
INotificationTransportProvider
Default NotificationTransport implementation, which not use ApiManager token auth
-
Constructor Summary
ConstructorsConstructorDescriptionSimple ConstructorNotificationTransportRest(IHttpTransportProvider httpTransport) Constructor with IHttpTransportProvider parameter -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponsesend(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification) Send a Notification GRU can throw AppException in case of problem with the JSON requestvoidsetHttpTransport(IHttpTransportProvider httpTransport) setter of httpTransportvoidsetNotificationEndPoint(String strNotificationEndPoint) setter of notificationEndPoint
-
Constructor Details
-
NotificationTransportRest
public NotificationTransportRest()Simple Constructor -
NotificationTransportRest
Constructor with IHttpTransportProvider parameter- Parameters:
httpTransport- the provider to use
-
-
Method Details
-
setNotificationEndPoint
setter of notificationEndPoint- Parameters:
strNotificationEndPoint- value to use
-
setHttpTransport
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:
sendin interfaceINotificationTransportProvider- Parameters:
notification- the notification- Returns:
- a notifyGruResponse
-