Sending notification to hipchat using java api

  chatops

maven

        <dependency>
            <groupId>io.evanwong.oss</groupId>
            <artifactId>hipchat-java</artifactId>
            <version>0.4.2</version>
        </dependency>

Example

@Test
    public void hipchat() throws ExecutionException, InterruptedException {
        HipChatClient client = new HipChatClient(notificationToken);
        SendRoomNotificationRequestBuilder builder = client.prepareSendRoomNotificationRequestBuilder("errorlog", "Some <b>html</b>, &lt;entities&gt;, and a <a href=\"https://www.hipchat.com\">link</a>.<br />We can even use line breaks!");
        Future<NoContent> future = builder.setColor(MessageColor.YELLOW).setNotify(true).build().execute();
        NoContent noContent = future.get();
        System.out.println(noContent);
    }

docs