All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jivesoftware.smack.bosh.EceStatusEvent Maven / Gradle / Ivy

Go to download

Library to connect to Cisco Enterprise Chat and Email (ECE) chat interface which is a modified version of XMPP over BOSH standard.

The newest version!
package org.jivesoftware.smack.bosh;

public enum EceStatusEvent {
    CHAT_STARTED('-'),
    CHAT_CLOSED('_');

    private char token;

    EceStatusEvent(char token) {
        this.token = token;
    }

    public static EceStatusEvent extract(String msgBody) {
        for (EceStatusEvent v : values()) {
            if (v.getToken() == msgBody.charAt(0)) {
                return v;
            }
        }
        return null;
    }

    public char getToken() {
        return token;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy