|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simpleframework.http.socket.Reason
public class Reason
The Reason object is used to hold a textual reason
for connection closure and an RFC 6455 defined code. When a
connection is to be closed a control frame with an opcode of
close is sent with the text reason, if one is provided.
| Constructor Summary | |
|---|---|
Reason(CloseCode code)
Constructor for the Reason object. |
|
Reason(CloseCode code,
String text)
Constructor for the Reason object. |
|
| Method Summary | |
|---|---|
CloseCode |
getCode()
This is used to get the RFC 6455 code describing the type of close event. |
String |
getText()
This is used to get the textual description for the closure. |
String |
toString()
This is used to provide a textual representation of the reason. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Reason(CloseCode code)
Reason object. This is used
to create a reason and a textual description of that reason
to be delivered as a control frame.
code - this is the code to be sent with the frame
public Reason(CloseCode code,
String text)
Reason object. This is used
to create a reason and a textual description of that reason
to be delivered as a control frame.
code - this is the code to be sent with the frametext - this is textual description of the close reason| Method Detail |
|---|
public CloseCode getCode()
public String getText()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||