org.lastbamboo.common.ice.candidate
Class IceUdpHostCandidate

java.lang.Object
  extended by org.lastbamboo.common.ice.candidate.AbstractIceCandidate
      extended by org.lastbamboo.common.ice.candidate.IceUdpHostCandidate
All Implemented Interfaces:
Comparable<AbstractIceCandidate>, IceCandidate

public class IceUdpHostCandidate
extends AbstractIceCandidate

ICE UDP candidate for the local host.


Field Summary
 
Fields inherited from class org.lastbamboo.common.ice.candidate.AbstractIceCandidate
DEFAULT_COMPONENT_ID
 
Constructor Summary
IceUdpHostCandidate(InetSocketAddress hostAddress, boolean controlling)
          Creates a new UDP ICE candidate for the local host.
IceUdpHostCandidate(InetSocketAddress socketAddress, String foundation, long priority, boolean controlling, int componentId)
          Creates a new UDP ICE candidate for the local host.
 
Method Summary
<T> T
accept(IceCandidateVisitor<T> visitor)
          Accepts the specified visitor to an ICE candidate.
 
Methods inherited from class org.lastbamboo.common.ice.candidate.AbstractIceCandidate
compareTo, equals, getBaseCandidate, getComponentId, getFoundation, getPriority, getRelatedAddress, getRelatedPort, getSocketAddress, getTransport, getType, hashCode, isControlling, isUdp, setControlling, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IceUdpHostCandidate

public IceUdpHostCandidate(InetSocketAddress hostAddress,
                           boolean controlling)
Creates a new UDP ICE candidate for the local host.

Parameters:
hostAddress - The candidate address and port.
controlling - Whether or not this candidate is the controlling candidate.

IceUdpHostCandidate

public IceUdpHostCandidate(InetSocketAddress socketAddress,
                           String foundation,
                           long priority,
                           boolean controlling,
                           int componentId)
Creates a new UDP ICE candidate for the local host.

Parameters:
socketAddress - The address of the local host.
foundation - The foundation for the candidate.
priority - The priority.
controlling - Whether or not this candidate is the controlling candidate.
componentId - The component ID.
Method Detail

accept

public <T> T accept(IceCandidateVisitor<T> visitor)
Description copied from interface: IceCandidate
Accepts the specified visitor to an ICE candidate.

Type Parameters:
T - The class to return.
Parameters:
visitor - The visitor to accept.
Returns:
The class the visitor created.


Copyright © 2013 LittleShoot. All Rights Reserved.