Class NotificationTransportRest
- java.lang.Object
-
- fr.paris.lutece.plugins.librarynotifygru.rs.service.NotificationTransportRest
-
- All Implemented Interfaces:
INotificationTransportProvider
public final class NotificationTransportRest extends java.lang.Object implements INotificationTransportProvider
Default NotificationTransport implementation, which not use ApiManager token auth
-
-
Constructor Summary
Constructors Constructor Description NotificationTransportRest()Simple ConstructorNotificationTransportRest(IHttpTransportProvider httpTransport)Constructor with IHttpTransportProvider parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.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(java.lang.String strNotificationEndPoint)setter of notificationEndPoint-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.librarynotifygru.rs.service.INotificationTransportProvider
send
-
-
-
-
Constructor Detail
-
NotificationTransportRest
public NotificationTransportRest()
Simple Constructor
-
NotificationTransportRest
public NotificationTransportRest(IHttpTransportProvider httpTransport)
Constructor with IHttpTransportProvider parameter- Parameters:
httpTransport- the provider to use
-
-
Method Detail
-
setNotificationEndPoint
public void setNotificationEndPoint(java.lang.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:
sendin interfaceINotificationTransportProvider- Parameters:
notification- the notification- Returns:
- a notifyGruResponse
-
-