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 String
ATTR_SID
static String
ATTR_TARGET
static String
ELEMENT
static String
NAMESPACE
static String
SCHEME_HTTP
static String
XMLNS_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 boolean
equals(Object obj)
List<HttpAuthElement>
getAuthParameters()
List<CookieElement>
getCookies()
String
getElementName()
Returns the root element name.List<HeaderElement>
getHeaders()
String
getNamespace()
Returns the root element XML namespace.String
getSid()
Return the optional stream identifier used for XEP-0095: Stream Initiation.String
getTarget()
int
hashCode()
XmlStringBuilder
toXML(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:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-