public class ByondMessage extends Object
ServerAddress
,
message itself as String
and type of expected response as ResponseType
.
ByondClient
to know,
where message should be send.
ping&data=123&status
".
UnexpectedResponseTypeException
will be thrown.
Default expected response is ResponseType.ANY
.Constructor and Description |
---|
ByondMessage() |
ByondMessage(ServerAddress serverAddress,
String message) |
ByondMessage(ServerAddress serverAddress,
String message,
ResponseType expectedResponse) |
ByondMessage(String serverName,
int serverPort,
String message) |
ByondMessage(String serverName,
int serverPort,
String message,
ResponseType expectedResponse) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ResponseType |
getExpectedResponse() |
String |
getMessage() |
ServerAddress |
getServerAddress() |
int |
hashCode() |
void |
setExpectedResponse(ResponseType expectedResponse) |
void |
setMessage(String message) |
void |
setServerAddress(ServerAddress serverAddress) |
String |
toString() |
public ByondMessage()
public ByondMessage(ServerAddress serverAddress, String message)
public ByondMessage(ServerAddress serverAddress, String message, ResponseType expectedResponse)
public ByondMessage(String serverName, int serverPort, String message, ResponseType expectedResponse)
public ServerAddress getServerAddress()
public void setServerAddress(ServerAddress serverAddress)
public String getMessage()
public void setMessage(String message)
public ResponseType getExpectedResponse()
public void setExpectedResponse(ResponseType expectedResponse)
Copyright © 2017. All rights reserved.