Class UrlDataElement
- java.lang.Object
-
- org.jivesoftware.smackx.urldata.element.UrlDataElement
-
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
public class UrlDataElement extends Object implements ExtensionElement
The url-data element.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_SIDstatic StringATTR_TARGETstatic StringELEMENTstatic StringNAMESPACEstatic StringSCHEME_HTTPstatic StringXMLNS_HTTP
-
Constructor Summary
Constructors Constructor Description UrlDataElement(String target, String sid)UrlDataElement(String target, String sid, List<HttpAuthElement> authParamElements, List<CookieElement> cookieElements, List<HeaderElement> headerElements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<HttpAuthElement>getAuthParameters()List<CookieElement>getCookies()StringgetElementName()Returns the root element name.List<HeaderElement>getHeaders()StringgetNamespace()Returns the root element XML namespace.StringgetSid()Return the optional stream identifier used for XEP-0095: Stream Initiation.StringgetTarget()inthashCode()XmlStringBuildertoXML(XmlEnvironment xmlEnvironment)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ATTR_TARGET
public static final String ATTR_TARGET
- See Also:
- Constant Field Values
-
ATTR_SID
public static final String ATTR_SID
- See Also:
- Constant Field Values
-
XMLNS_HTTP
public static final String XMLNS_HTTP
- See Also:
- Constant Field Values
-
SCHEME_HTTP
public static final String SCHEME_HTTP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UrlDataElement
public UrlDataElement(String target, String sid)
-
UrlDataElement
public UrlDataElement(String target, String sid, List<HttpAuthElement> authParamElements, List<CookieElement> cookieElements, List<HeaderElement> headerElements)
-
-
Method Detail
-
getSid
public String getSid()
Return the optional stream identifier used for XEP-0095: Stream Initiation.- Returns:
- stream identifier or null
-
getAuthParameters
public List<HttpAuthElement> getAuthParameters()
-
getCookies
public List<CookieElement> getCookies()
-
getHeaders
public List<HeaderElement> getHeaders()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
-