|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
org.littleshoot.stun.stack.message.attributes.ErrorCodeAttribute
public class ErrorCodeAttribute
The STUN ERROR CODE attribute.
| Constructor Summary | |
|---|---|
ErrorCodeAttribute(int errorClass,
int errorNumber,
String reasonPhrase)
Creates a new STUN error code attribute. |
|
ErrorCodeAttribute(int code,
String reasonPhrase)
Creates a new STUN error code attribute. |
|
| Method Summary | |
|---|---|
void |
accept(StunAttributeVisitor visitor)
Allows attributes to accept visitors. |
int |
getErrorClass()
The class of the error, from 3 to 6, inclusive. |
int |
getErrorCode()
Returns the full error code. |
int |
getErrorNumber()
The number of the error, from 0 to 99, inclusive. |
CharSequence |
getReasonPhrase()
Accessor for the reason phrase. |
String |
toString()
|
| Methods inherited from class org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute |
|---|
getAttributeType, getBodyLength, getTotalLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorCodeAttribute(int code,
String reasonPhrase)
code - The error code.reasonPhrase - The reason for the error.
public ErrorCodeAttribute(int errorClass,
int errorNumber,
String reasonPhrase)
errorClass - The error class from 3 to 6.errorNumber - The error number from 0 to 99.reasonPhrase - The reason for the error.| Method Detail |
|---|
public int getErrorCode()
public int getErrorClass()
public int getErrorNumber()
public CharSequence getReasonPhrase()
public void accept(StunAttributeVisitor visitor)
StunAttribute
visitor - The visitor to accept.public String toString()
toString in class AbstractStunAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||