Home | History | Annotate | Download | only in jbosh
      1 /*
      2  * Copyright 2009 Mike Cumings
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *   http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.kenai.jbosh;
     18 
     19 import javax.xml.XMLConstants;
     20 
     21 /**
     22  * Class containing constants for attribute definitions used by the
     23  * XEP-0124 specification.  We shouldn't need to expose these outside
     24  * our package, since nobody else should be needing to worry about
     25  * them.
     26  */
     27 final class Attributes {
     28 
     29     /**
     30      * Private constructor to prevent construction of library class.
     31      */
     32     private Attributes() {
     33         super();
     34     }
     35 
     36     static final BodyQName ACCEPT = BodyQName.createBOSH("accept");
     37     static final BodyQName AUTHID = BodyQName.createBOSH("authid");
     38     static final BodyQName ACK = BodyQName.createBOSH("ack");
     39     static final BodyQName CHARSETS = BodyQName.createBOSH("charsets");
     40     static final BodyQName CONDITION = BodyQName.createBOSH("condition");
     41     static final BodyQName CONTENT = BodyQName.createBOSH("content");
     42     static final BodyQName FROM = BodyQName.createBOSH("from");
     43     static final BodyQName HOLD = BodyQName.createBOSH("hold");
     44     static final BodyQName INACTIVITY = BodyQName.createBOSH("inactivity");
     45     static final BodyQName KEY = BodyQName.createBOSH("key");
     46     static final BodyQName MAXPAUSE = BodyQName.createBOSH("maxpause");
     47     static final BodyQName NEWKEY = BodyQName.createBOSH("newkey");
     48     static final BodyQName PAUSE = BodyQName.createBOSH("pause");
     49     static final BodyQName POLLING = BodyQName.createBOSH("polling");
     50     static final BodyQName REPORT = BodyQName.createBOSH("report");
     51     static final BodyQName REQUESTS = BodyQName.createBOSH("requests");
     52     static final BodyQName RID = BodyQName.createBOSH("rid");
     53     static final BodyQName ROUTE = BodyQName.createBOSH("route");
     54     static final BodyQName SECURE = BodyQName.createBOSH("secure");
     55     static final BodyQName SID = BodyQName.createBOSH("sid");
     56     static final BodyQName STREAM = BodyQName.createBOSH("stream");
     57     static final BodyQName TIME = BodyQName.createBOSH("time");
     58     static final BodyQName TO = BodyQName.createBOSH("to");
     59     static final BodyQName TYPE = BodyQName.createBOSH("type");
     60     static final BodyQName VER = BodyQName.createBOSH("ver");
     61     static final BodyQName WAIT = BodyQName.createBOSH("wait");
     62     static final BodyQName XML_LANG =
     63             BodyQName.createWithPrefix(XMLConstants.XML_NS_URI, "lang", "xml");
     64 }
     65