org.lastbamboo.common.ice.candidate
Class IceUdpPeerReflexiveCandidate

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

public class IceUdpPeerReflexiveCandidate
extends AbstractIceCandidate

Peer reflexive ICE UDP candidate.


Field Summary
 
Fields inherited from class org.lastbamboo.common.ice.candidate.AbstractIceCandidate
DEFAULT_COMPONENT_ID
 
Constructor Summary
IceUdpPeerReflexiveCandidate(InetSocketAddress peerReflexiveAddress, IceCandidate baseCandidate, boolean controlling, long priority)
          Creates a new UDP ICE candidate for the server peer candidate.
IceUdpPeerReflexiveCandidate(InetSocketAddress peerReflexiveAddress, String foundation, int componentId, boolean controlling, long priority)
          Creates a new UDP ICE candidate for the server peer candidate.
 
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

IceUdpPeerReflexiveCandidate

public IceUdpPeerReflexiveCandidate(InetSocketAddress peerReflexiveAddress,
                                    IceCandidate baseCandidate,
                                    boolean controlling,
                                    long priority)
Creates a new UDP ICE candidate for the server peer candidate.

Parameters:
peerReflexiveAddress - The address of the peer reflexive candidate.
baseCandidate - The local base candidate.
controlling - Whether or not this candidate is the controlling candidate.
priority - The priority of the candidate.

IceUdpPeerReflexiveCandidate

public IceUdpPeerReflexiveCandidate(InetSocketAddress peerReflexiveAddress,
                                    String foundation,
                                    int componentId,
                                    boolean controlling,
                                    long priority)
Creates a new UDP ICE candidate for the server peer candidate.

Parameters:
peerReflexiveAddress - The address of the peer reflexive candidate.
foundation - The foundation.
componentId - The component ID.
controlling - Whether or not this candidate is the controlling candidate.
priority - The priority for the candidate.
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.