|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lastbamboo.common.ice.candidate.AbstractIceCandidate
public abstract class AbstractIceCandidate
Class that abstracts out general attributes of all ICE session candidates.
| Field Summary | |
|---|---|
protected static int |
DEFAULT_COMPONENT_ID
The component ID is 1 unless otherwise specified. |
| Constructor Summary | |
|---|---|
|
AbstractIceCandidate(InetSocketAddress socketAddress,
InetAddress baseAddress,
IceCandidateType type,
IceTransportProtocol transport,
boolean controlling)
Creates a new ICE candidate. |
protected |
AbstractIceCandidate(InetSocketAddress socketAddress,
String foundation,
IceCandidateType type,
IceTransportProtocol transport,
long priority,
boolean controlling,
int componentId,
IceCandidate baseCandidate,
InetAddress relatedAddress,
int relatedPort)
|
| Method Summary | |
|---|---|
int |
compareTo(AbstractIceCandidate other)
|
boolean |
equals(Object obj)
|
IceCandidate |
getBaseCandidate()
Accessor for the base candidate for this candidate. |
int |
getComponentId()
Accessor for the component ID of this candidate. |
String |
getFoundation()
Accessor for the candidate's foundation. |
long |
getPriority()
Accessor for the priority of the candidate. |
InetAddress |
getRelatedAddress()
|
int |
getRelatedPort()
|
InetSocketAddress |
getSocketAddress()
Accessor for the address and port of the candidate. |
IceTransportProtocol |
getTransport()
Accessor for the type of transport of this candidate, such as TCP or UDP. |
IceCandidateType |
getType()
Gets the type of the ICE candidate. |
int |
hashCode()
|
boolean |
isControlling()
Returns whether or not this peer is the controlling peer. |
boolean |
isUdp()
|
void |
setControlling(boolean controlling)
Sets the controlling status of this candidate. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lastbamboo.common.ice.candidate.IceCandidate |
|---|
accept |
| Field Detail |
|---|
protected static final int DEFAULT_COMPONENT_ID
| Constructor Detail |
|---|
public AbstractIceCandidate(InetSocketAddress socketAddress,
InetAddress baseAddress,
IceCandidateType type,
IceTransportProtocol transport,
boolean controlling)
socketAddress - The candidate address and port.baseAddress - The base address.type - The type of candidate.transport - The transport protocol.controlling - Whether or not this candidate is the controlling
candidate.
protected AbstractIceCandidate(InetSocketAddress socketAddress,
String foundation,
IceCandidateType type,
IceTransportProtocol transport,
long priority,
boolean controlling,
int componentId,
IceCandidate baseCandidate,
InetAddress relatedAddress,
int relatedPort)
| Method Detail |
|---|
public void setControlling(boolean controlling)
IceCandidate
setControlling in interface IceCandidatecontrolling - The controlling status.public IceTransportProtocol getTransport()
IceCandidate
getTransport in interface IceCandidatepublic IceCandidateType getType()
IceCandidate
getType in interface IceCandidatepublic final InetSocketAddress getSocketAddress()
IceCandidate
getSocketAddress in interface IceCandidatepublic final long getPriority()
IceCandidate
getPriority in interface IceCandidatepublic int getComponentId()
IceCandidate
getComponentId in interface IceCandidatepublic String getFoundation()
IceCandidate
getFoundation in interface IceCandidatepublic boolean isControlling()
IceCandidate
isControlling in interface IceCandidatetrue if this peer is the controlling peer,
otherwise false.public IceCandidate getBaseCandidate()
IceCandidate
getBaseCandidate in interface IceCandidatepublic InetAddress getRelatedAddress()
getRelatedAddress in interface IceCandidatepublic int getRelatedPort()
getRelatedPort in interface IceCandidatepublic boolean isUdp()
isUdp in interface IceCandidatepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(AbstractIceCandidate other)
compareTo in interface Comparable<AbstractIceCandidate>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||