org.lastbamboo.common.ice
Class IceRoleCheckerImpl

java.lang.Object
  extended by org.lastbamboo.common.ice.IceRoleCheckerImpl
All Implemented Interfaces:
IceRoleChecker

public class IceRoleCheckerImpl
extends Object
implements IceRoleChecker

Class that verifies ICE roles, as specified in ICE section 7.2.1.1. "Detecting and Repairing Role Conflicts"


Constructor Summary
IceRoleCheckerImpl()
           
 
Method Summary
 org.littleshoot.stun.stack.message.BindingErrorResponse checkAndRepairRoles(org.littleshoot.stun.stack.message.BindingRequest request, IceAgent agent, org.littleshoot.mina.common.IoSession ioSession)
          Checks to make sure controlling roles are as expected for incoming requests and repairs them with a Binding Error Response if not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IceRoleCheckerImpl

public IceRoleCheckerImpl()
Method Detail

checkAndRepairRoles

public org.littleshoot.stun.stack.message.BindingErrorResponse checkAndRepairRoles(org.littleshoot.stun.stack.message.BindingRequest request,
                                                                                   IceAgent agent,
                                                                                   org.littleshoot.mina.common.IoSession ioSession)
Description copied from interface: IceRoleChecker
Checks to make sure controlling roles are as expected for incoming requests and repairs them with a Binding Error Response if not.

Specified by:
checkAndRepairRoles in interface IceRoleChecker
Parameters:
request - The incoming Binding Request.
agent - The ICE agent.
ioSession - The session the request arrived on.
Returns:
A BindingErrorResponse, or null if no roles need repairing.


Copyright © 2013 LittleShoot. All Rights Reserved.