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 |
|---|---|
protected void |
addAuthentication(Map<String,String> mapHeadersRequest)
add specific authentication to request
|
protected IHttpTransportProvider |
getHttpTransport() |
void |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendpublic NotificationTransportRest()
public NotificationTransportRest(IHttpTransportProvider httpTransport)
httpTransport - the provider to useprotected void addAuthentication(Map<String,String> mapHeadersRequest)
mapHeadersRequest - map of headers to addpublic void setNotificationEndPoint(String strNotificationEndPoint)
strNotificationEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to useprotected IHttpTransportProvider getHttpTransport()
public void send(fr.paris.lutece.plugins.grubusiness.business.notification.Notification notification)
send in interface INotificationTransportProvidernotification - the notificationCopyright © 2017 City of Paris. All rights reserved.