fm.liveswitch.stun.ice.RoleConflictError Class Reference

487 Role Conflict. More...

Public Member Functions

String getDescription ()
 Gets the description for this fm.liveswitch.stun.Error. More...
 
fm.liveswitch.stun.ice.ControlledAttribute getIceControlled ()
 Gets the ICE-controlled attribute. More...
 
fm.liveswitch.stun.ice.ControllingAttribute getIceControlling ()
 Gets the ICE-controlling attribute. More...
 
 RoleConflictError (fm.liveswitch.stun.ice.ControlledAttribute iceControlled, fm.liveswitch.stun.ice.ControllingAttribute iceControlling)
 Initializes a new instance of the fm.liveswitch.stun.ice.RoleConflictError class. More...
 
 RoleConflictError (String message, fm.liveswitch.stun.ice.ControlledAttribute iceControlled, fm.liveswitch.stun.ice.ControllingAttribute iceControlling)
 Initializes a new instance of the fm.liveswitch.stun.ice.RoleConflictError class. More...
 
- Public Member Functions inherited from fm.liveswitch.stun.Error
 Error (fm.liveswitch.ErrorCode code, String message)
 Initializes a new instance of the fm.liveswitch.stun.Error class. More...
 
int getStunCode ()
 Gets the STUN code. More...
 
int getStunErrorCode ()
 Gets the STUN code. More...
 
- Public Member Functions inherited from fm.liveswitch.Error
 Error ()
 Initializes a new instance of the fm.liveswitch.Error class. More...
 
 Error (fm.liveswitch.ErrorCode code, java.lang.Exception exception)
 Initializes a new instance of the fm.liveswitch.Error class. More...
 
fm.liveswitch.ErrorCode getCode ()
 Gets the code. More...
 
int getCodeValue ()
 Gets the code. More...
 
fm.liveswitch.ErrorCode getErrorCode ()
 Gets the code. More...
 
java.lang.Exception getException ()
 Gets the exception. More...
 
String getMessage ()
 Gets the message. More...
 
void setCode (fm.liveswitch.ErrorCode value)
 Sets the code. More...
 
void setCodeValue (int value)
 Sets the code. More...
 
void setErrorCode (fm.liveswitch.ErrorCode value)
 Sets the code. More...
 
void setException (java.lang.Exception value)
 Sets the exception. More...
 
void setMessage (String value)
 Sets the message. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
String toString ()
 Returns the string representation of this error. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from fm.liveswitch.stun.Error
static fm.liveswitch.Error createStunError (int code, fm.liveswitch.stun.Message message)
 Creates error for the given error code and with a given message. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Error
static fm.liveswitch.Error fromJson (String errorJson)
 Deserializes an instance from JSON. More...
 
static String toJson (final fm.liveswitch.Error error)
 Serializes an instance to JSON. More...
 

Detailed Description

487 Role Conflict.

The Binding request contained either the ICE-CONTROLLING or ICE-CONTROLLED attribute, indicating a role that conflicted with the server. The server ran a tie-breaker based on the tie-breaker value in the request and determined that the client needs to switch roles.

Constructor & Destructor Documentation

◆ RoleConflictError() [1/2]

fm.liveswitch.stun.ice.RoleConflictError.RoleConflictError ( fm.liveswitch.stun.ice.ControlledAttribute  iceControlled,
fm.liveswitch.stun.ice.ControllingAttribute  iceControlling 
)

Initializes a new instance of the fm.liveswitch.stun.ice.RoleConflictError class.

Parameters
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.

◆ RoleConflictError() [2/2]

fm.liveswitch.stun.ice.RoleConflictError.RoleConflictError ( String  message,
fm.liveswitch.stun.ice.ControlledAttribute  iceControlled,
fm.liveswitch.stun.ice.ControllingAttribute  iceControlling 
)

Initializes a new instance of the fm.liveswitch.stun.ice.RoleConflictError class.

Parameters
messageThe message.
iceControlledThe ICE-controlled attribute.
iceControllingThe ICE-controlling attribute.

Member Function Documentation

◆ getDescription()

String fm.liveswitch.stun.ice.RoleConflictError.getDescription ( )

Gets the description for this fm.liveswitch.stun.Error.

Reimplemented from fm.liveswitch.Error.

◆ getIceControlled()

fm.liveswitch.stun.ice.ControlledAttribute fm.liveswitch.stun.ice.RoleConflictError.getIceControlled ( )

Gets the ICE-controlled attribute.

◆ getIceControlling()

fm.liveswitch.stun.ice.ControllingAttribute fm.liveswitch.stun.ice.RoleConflictError.getIceControlling ( )

Gets the ICE-controlling attribute.