Package org.jivesoftware.openfire.http
Class HttpBindBody
- java.lang.Object
-
- org.jivesoftware.openfire.http.HttpBindBody
-
public class HttpBindBody extends Object
Representation of the 'body' element of an HTTP-Bind defined request.- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpBindBody(String content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asXML()
static HttpBindBody
from(String content)
org.dom4j.Document
getDocument()
int
getHold()
protected static int
getIntAttribute(String value, int defaultValue)
String
getLanguage()
protected static long
getLongAttribute(String value, long defaultValue)
int
getMajorVersion()
int
getMinorVersion()
int
getPause()
Long
getRid()
String
getSid()
List<org.dom4j.Element>
getStanzaElements()
String
getType()
String
getVersion()
int
getWait()
boolean
isEmpty()
boolean
isPoll()
boolean
isRestart()
String
toString()
-
-
-
Constructor Detail
-
HttpBindBody
protected HttpBindBody(String content) throws org.dom4j.DocumentException, org.xmlpull.v1.XmlPullParserException, IOException
- Throws:
org.dom4j.DocumentException
org.xmlpull.v1.XmlPullParserException
IOException
-
-
Method Detail
-
from
public static HttpBindBody from(String content) throws org.dom4j.DocumentException, org.xmlpull.v1.XmlPullParserException, IOException
- Throws:
org.dom4j.DocumentException
org.xmlpull.v1.XmlPullParserException
IOException
-
getRid
public Long getRid()
-
getSid
public String getSid()
-
isEmpty
public boolean isEmpty()
-
isPoll
public boolean isPoll()
-
getLanguage
public String getLanguage()
-
getWait
public int getWait()
-
getHold
public int getHold()
-
getPause
public int getPause()
-
getVersion
public String getVersion()
-
getMajorVersion
public int getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
-
getType
public String getType()
-
isRestart
public boolean isRestart()
-
getStanzaElements
public List<org.dom4j.Element> getStanzaElements()
-
asXML
public String asXML()
-
getDocument
public org.dom4j.Document getDocument()
-
getLongAttribute
protected static long getLongAttribute(String value, long defaultValue)
-
getIntAttribute
protected static int getIntAttribute(String value, int defaultValue)
-
-