Class NotificationTransportApiManagerRest
java.lang.Object
fr.paris.lutece.plugins.librarynotifygru.rs.service.NotificationTransportApiManagerRest
- All Implemented Interfaces:
INotificationTransportProvider
@ApplicationScoped
@Named("library-notifygru.apiManagerTransport")
public class NotificationTransportApiManagerRest
extends Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimple ConstructorNotificationTransportApiManagerRest(String strNotificationEndPoint, String strApiManagerEndPoint, String strApiManagerCredentials) -
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 requestvoidsetApiManagerCredentials(String strApiManagerCredentials) Sets the API Manager credentialsvoidsetApiManagerEndPoint(String strApiManagerEndPoint) setter of apiManagerEndPointvoidsetHttpTransport(IHttpTransportProvider httpTransport) setter of httpTransportvoidsetNotificationEndPoint(String strNotificationEndPoint) setter of notificationEndPoint
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
NotificationTransportApiManagerRest
public NotificationTransportApiManagerRest()Simple Constructor -
NotificationTransportApiManagerRest
-
-
Method Details
-
setApiManagerEndPoint
setter of apiManagerEndPoint- Parameters:
strApiManagerEndPoint- value to use
-
setApiManagerCredentials
Sets the API Manager credentials- Parameters:
strApiManagerCredentials- the API Manager credentials
-
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
-