|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.fedorchuck.developers_notification.integrations.telegram.TelegramImpl
public class TelegramImpl
Provides sending messages via Telegram messenger
Author: Volodymyr Fedorchuk
Constructor Summary | |
---|---|
TelegramImpl()
|
Method Summary | |
---|---|
void |
analyseResponse(HttpResponse response)
Analyse response after sent message |
Task |
generateMessage(java.lang.String projectName,
java.lang.String description,
java.lang.Throwable throwable)
Generate message to send by specified params |
Task |
generateMessageFromLoggingEvent(java.lang.String projectName,
org.apache.log4j.spi.LoggingEvent event)
Generate Task to send by specified params |
DevelopersNotificationMessenger |
name()
Contains name of integration |
void |
sendMessage(Task message)
Provides sending messages to Telegram messenger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TelegramImpl()
Method Detail |
---|
public DevelopersNotificationMessenger name()
Integration
name
in interface Integration
public void sendMessage(Task message)
sendMessage
in interface Integration
message
- to sendpublic Task generateMessage(java.lang.String projectName, java.lang.String description, java.lang.Throwable throwable)
generateMessage
in interface Integration
projectName
- where was method called. Can be null
description
- about situation. Can be null
throwable
- which happened. Can be null
public Task generateMessageFromLoggingEvent(java.lang.String projectName, org.apache.log4j.spi.LoggingEvent event)
Task
to send by specified params
generateMessageFromLoggingEvent
in interface Integration
projectName
- where was method called. Can be null
event
- from logger
Task
JSONpublic void analyseResponse(HttpResponse response)
See Also:: https://core.telegram.org/method/messages.sendMessage#return-errors
analyseResponse
in interface Integration
response
- response from http client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |