public final class NotificationTransportApiManagerRest extends Object implements INotificationTransportProvider
| Constructor and Description |
|---|
NotificationTransportApiManagerRest()
Simple Constructor
|
| 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 |
setApiManagerCredentials(String strApiManagerCredentials)
Sets the API Manager credentials
|
void |
setApiManagerEndPoint(String strApiManagerEndPoint)
setter of apiManagerEndPoint
|
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 NotificationTransportApiManagerRest()
public void setApiManagerEndPoint(String strApiManagerEndPoint)
strApiManagerEndPoint - value to usepublic void setApiManagerCredentials(String strApiManagerCredentials)
strApiManagerCredentials - the API Manager credentialsprotected 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 © 2018 City of Paris. All rights reserved.