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

org.igniterealtime.jbosh.Attributes Maven / Gradle / Ivy

/*
 * Copyright 2009 Mike Cumings
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.igniterealtime.jbosh;

import javax.xml.XMLConstants;

/**
 * Class containing constants for attribute definitions used by the
 * XEP-0124 specification.  We shouldn't need to expose these outside
 * our package, since nobody else should be needing to worry about
 * them.
 */
final class Attributes {

    static final BodyQName ACCEPT = BodyQName.createBOSH("accept");
    static final BodyQName AUTHID = BodyQName.createBOSH("authid");
    static final BodyQName ACK = BodyQName.createBOSH("ack");
    static final BodyQName CHARSETS = BodyQName.createBOSH("charsets");
    static final BodyQName CONDITION = BodyQName.createBOSH("condition");
    static final BodyQName CONTENT = BodyQName.createBOSH("content");
    static final BodyQName FROM = BodyQName.createBOSH("from");
    static final BodyQName HOLD = BodyQName.createBOSH("hold");
    static final BodyQName INACTIVITY = BodyQName.createBOSH("inactivity");
    static final BodyQName KEY = BodyQName.createBOSH("key");
    static final BodyQName MAXPAUSE = BodyQName.createBOSH("maxpause");
    static final BodyQName NEWKEY = BodyQName.createBOSH("newkey");
    static final BodyQName PAUSE = BodyQName.createBOSH("pause");
    static final BodyQName POLLING = BodyQName.createBOSH("polling");
    static final BodyQName REPORT = BodyQName.createBOSH("report");
    static final BodyQName REQUESTS = BodyQName.createBOSH("requests");
    static final BodyQName RID = BodyQName.createBOSH("rid");
    static final BodyQName ROUTE = BodyQName.createBOSH("route");
    static final BodyQName SECURE = BodyQName.createBOSH("secure");
    static final BodyQName SID = BodyQName.createBOSH("sid");
    static final BodyQName STREAM = BodyQName.createBOSH("stream");
    static final BodyQName TIME = BodyQName.createBOSH("time");
    static final BodyQName TO = BodyQName.createBOSH("to");
    static final BodyQName TYPE = BodyQName.createBOSH("type");
    static final BodyQName VER = BodyQName.createBOSH("ver");
    static final BodyQName WAIT = BodyQName.createBOSH("wait");
    static final BodyQName XML_LANG =
            BodyQName.createWithPrefix(XMLConstants.XML_NS_URI, "lang", "xml");

    /**
     * Private constructor to prevent construction of library class.
     */
    private Attributes() {
        super();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy