org.lastbamboo.common.ice.candidate
Class IceUdpServerReflexiveCandidate

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

public class IceUdpServerReflexiveCandidate
extends AbstractIceCandidate

Server reflexive ICE UDP candidate.


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

IceUdpServerReflexiveCandidate

public IceUdpServerReflexiveCandidate(InetSocketAddress serverReflexiveAddress,
                                      IceCandidate baseCandidate,
                                      InetAddress stunServerAddress,
                                      boolean controlling)
Creates a new UDP ICE candidate for the server reflexive candidate.

Parameters:
serverReflexiveAddress - The address of the server reflexive candidate.
baseCandidate - The base candidate.
stunServerAddress - The address of the STUN server.
controlling - Whether or not this candidate is the controlling candidate.

IceUdpServerReflexiveCandidate

public IceUdpServerReflexiveCandidate(InetSocketAddress serverReflexiveAddress,
                                      String foundation,
                                      InetAddress relatedAddress,
                                      int relatedPort,
                                      boolean controlling,
                                      long priority,
                                      int componentId)
Creates a new UDP ICE candidate for the server reflexive candidate.

Parameters:
serverReflexiveAddress - The address of the server reflexive candidate. the candidate address.
foundation - The foundation.
relatedAddress - The address related to this candidate. In this case, the base address.
relatedPort - The port related to this candidate. In this case, the base port.
controlling - Whether or not this candidate is the controlling candidate.
priority - The priority of the 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.