aboutsummaryrefslogtreecommitdiff
path: root/src/com/kenai/jbosh/Attributes.java
blob: d01541ece76d6f0c440ceed182c56b58dfb8ce53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * 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 com.kenai.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 {

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

    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");
}