Class JingleS5BTransport
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.element.JingleContentTransport
-
- org.jivesoftware.smackx.jingle.transports.jingle_s5b.elements.JingleS5BTransport
-
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
public class JingleS5BTransport extends JingleContentTransport implements ExtensionElement
Socks5Bytestream transport element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJingleS5BTransport.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_DSTADDRstatic StringATTR_MODEstatic StringATTR_SIDstatic StringNAMESPACE_V1static QNameQNAME-
Fields inherited from class org.jivesoftware.smackx.jingle.element.JingleContentTransport
candidates, ELEMENT, info
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJingleS5BTransport(List<JingleContentTransportCandidate> candidates, JingleContentTransportInfo info, String streamId, String dstAddr, Bytestream.Mode mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddExtraAttributes(XmlStringBuilder xml)static JingleS5BTransport.BuildergetBuilder()JingleS5BTransportCandidategetCandidate(String candidateId)StringgetDestinationAddress()Bytestream.ModegetMode()StringgetNamespace()Returns the root element XML namespace.StringgetStreamId()booleanhasCandidate(String candidateId)-
Methods inherited from class org.jivesoftware.smackx.jingle.element.JingleContentTransport
getCandidates, getElementName, getInfo, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.NamedElement
getElementName
-
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NAMESPACE_V1
public static final String NAMESPACE_V1
- See Also:
- Constant Field Values
-
ATTR_DSTADDR
public static final String ATTR_DSTADDR
- See Also:
- Constant Field Values
-
ATTR_MODE
public static final String ATTR_MODE
- See Also:
- Constant Field Values
-
ATTR_SID
public static final String ATTR_SID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JingleS5BTransport
protected JingleS5BTransport(List<JingleContentTransportCandidate> candidates, JingleContentTransportInfo info, String streamId, String dstAddr, Bytestream.Mode mode)
-
-
Method Detail
-
getStreamId
public String getStreamId()
-
getDestinationAddress
public String getDestinationAddress()
-
getMode
public Bytestream.Mode getMode()
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
addExtraAttributes
protected void addExtraAttributes(XmlStringBuilder xml)
- Overrides:
addExtraAttributesin classJingleContentTransport
-
hasCandidate
public boolean hasCandidate(String candidateId)
-
getCandidate
public JingleS5BTransportCandidate getCandidate(String candidateId)
-
getBuilder
public static JingleS5BTransport.Builder getBuilder()
-
-