Package de.javawi.jstun.test.demo.ice
Class Candidate
java.lang.Object
de.javawi.jstun.test.demo.ice.Candidate
- All Implemented Interfaces:
Comparable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getBase()
short
int
boolean
getInUse()
int
getPort()
int
void
void
setComponentId
(short componentId) void
setFoundationId
(int foundationId) void
setInUse
(boolean isInUse) void
setPriority
(int priority)
-
Constructor Details
-
Candidate
public Candidate(Address address, short componentId) throws SocketException, UnknownHostException, UtilityException -
Candidate
public Candidate(Address address, Candidate.CandidateType type, short componentId, Candidate base) throws SocketException, UnknownHostException, UtilityException
-
-
Method Details
-
setBase
-
getBase
-
getCandidateType
-
setComponentId
public void setComponentId(short componentId) -
getComponentId
public short getComponentId() -
setFoundationId
public void setFoundationId(int foundationId) -
getFoundationId
public int getFoundationId() -
setPriority
public void setPriority(int priority) -
getPriority
public int getPriority() -
getAddress
- Throws:
UtilityException
-
getPort
public int getPort() -
setInUse
public void setInUse(boolean isInUse) -
getInUse
public boolean getInUse() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
equals
-