Skip to content

rburakov/openfire-callbackOnOffline-plugin

 
 

Repository files navigation

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title> Callback on offline Plugin Readme</title>
    <style type="text/css">
        BODY {
            font-size : 100%;
        }
        BODY, TD, TH {
            font-family : tahoma, verdana, arial, helvetica, sans-serif;
            font-size : 0.8em;
        }
        H2 {
             font-size : 10pt;
             font-weight : bold;
        }
        A:hover {
            text-decoration : none;
        }
        H1 {
            font-family : tahoma, arial, helvetica, sans-serif;
            font-size : 1.4em;
            font-weight: bold;
            border-bottom : 1px #ccc solid;
            padding-bottom : 2px;
        }

        TT {
            font-family : courier new;
            font-weight : bold;
            color : #060;
        }
        PRE {
            font-family : courier new;
            font-size : 100%;
        }
        #datatable TH {
            color : #fff;
            background-color : #2A448C;
            text-align : left;
        }
        #datatable TD {
            background-color : #FAF6EF;
        }
        #datatable .name {
            background-color : #DCE2F5;
        }


    </style>
</head>
<body>

<h1>
    Callback on offline Plugin Readme
</h1>

<h2>Overview</h2>

<p>
    Plugin intercepts messages and checks if recipient is available. If not, plugin sends async POST request with JSON
    body to defined url.
</p>

<p>
    Example JSON body:
<pre>
        <code>
            {
                "token":"21uh9d1h91d",
                "from":"[email protected]",
                "to":"[email protected]",
                "body":"Message body, so what user's typed"
            }
        </code>
    </pre>
</p>

<h2>
    Callback properties
</h2>

    There are few properties that can be defined to change plugin behaviour:
    <ul>
        <li><code>plugin.callback_on_offline.debug</code> - enable debug logs. If something doesn't work set property to true</li>
        <li><code>plugin.callback_on_offline.url</code> - url that will be called</li>
        <li><code>plugin.callback_on_offline.token</code> - token to be send with request</li>
        <li><code>plugin.callback_on_offline.send_body</code> - boolean value to determine if message's body will be send. True by default.</li>
    </ul>

</body>
</html>

About

Url is called when recipient is offline

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 78.9%
  • HTML 21.1%