public final class NotificationTransportRest extends Object implements INotificationTransportProvider
| Constructor and Description |
|---|
NotificationTransportRest()
Simple Constructor
|
NotificationTransportRest(IHttpTransportProvider httpTransport)
Constructor with IHttpTransportProvider parameter
|
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
setHttpTransport(IHttpTransportProvider httpTransport)
setter of httpTransport
|
void |
setNotificationEndPoint(String strNotificationEndPoint)
setter of notificationEndPoint
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendpublic NotificationTransportRest()
public NotificationTransportRest(IHttpTransportProvider httpTransport)
httpTransport - the provider to usepublic void setNotificationEndPoint(String strNotificationEndPoint)
strNotificationEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to usepublic fr.paris.lutece.plugins.grubusiness.business.notification.NotifyGruResponse send(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
send in interface INotificationTransportProvidernotification - the notificationCopyright © 2021 City of Paris. All rights reserved.