Class AuthParamElement
- java.lang.Object
-
- org.jivesoftware.smackx.urldata.http.element.NameValuePairElement
-
- org.jivesoftware.smackx.urldata.http.element.AuthParamElement
-
- All Implemented Interfaces:
Element
,NamedElement
,MetaInformationElement
public class AuthParamElement extends NameValuePairElement
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT
static String
NAME_PASSWORD
static String
NAME_REALM
static String
NAME_USERNAME
static String
PREFIX
-
Fields inherited from class org.jivesoftware.smackx.urldata.http.element.NameValuePairElement
ATTR_NAME, ATTR_VALUE
-
-
Constructor Summary
Constructors Constructor Description AuthParamElement(String name, String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getElementName()
Returns the root element name.int
hashCode()
static AuthParamElement
password(String password)
static AuthParamElement
realm(String realm)
XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
static AuthParamElement
username(String username)
-
Methods inherited from class org.jivesoftware.smackx.urldata.http.element.NameValuePairElement
addCommonXml, getName, getValue
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
NAME_REALM
public static final String NAME_REALM
- See Also:
- Constant Field Values
-
NAME_USERNAME
public static final String NAME_USERNAME
- See Also:
- Constant Field Values
-
NAME_PASSWORD
public static final String NAME_PASSWORD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthParamElement
public AuthParamElement(String name, String value)
-
-
Method Detail
-
realm
public static AuthParamElement realm(String realm)
-
username
public static AuthParamElement username(String username)
-
password
public static AuthParamElement password(String password)
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
-