public abstract class HipChatService extends Object
Constructor and Description |
---|
HipChatService() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeQuietly(Closeable... closeables) |
protected org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
abstract void |
publish(Notification notification) |
void |
publish(String message,
String color)
Deprecated.
This method currently does not expose all the available HipChat functionalities, use
publish(jenkins.plugins.hipchat.model.notifications.Notification) instead. |
void |
publish(String message,
String color,
boolean notify) |
void |
publish(String message,
String color,
boolean notify,
boolean textFormat) |
protected String |
readResponse(org.apache.http.HttpEntity entity) |
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient()
@Deprecated public final void publish(String message, String color) throws NotificationException
publish(jenkins.plugins.hipchat.model.notifications.Notification)
instead.message
- The message to send.color
- The notification color to use.NotificationException
- If there was an error while publishing the notification.public void publish(String message, String color, boolean notify) throws NotificationException
NotificationException
public void publish(String message, String color, boolean notify, boolean textFormat) throws NotificationException
NotificationException
public abstract void publish(Notification notification) throws NotificationException
NotificationException
protected final String readResponse(org.apache.http.HttpEntity entity) throws IOException
IOException
protected final void closeQuietly(Closeable... closeables)
Copyright © 2016–2018. All rights reserved.