public class WebSocketAddress extends LocalAddress implements Serializable, JoynrType
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Constructor and Description |
|---|
WebSocketAddress()
Default Constructor
|
WebSocketAddress(WebSocketAddress webSocketAddressObj)
Copy constructor
|
WebSocketAddress(WebSocketProtocol protocol,
String host,
Integer port,
String path)
Parameterized constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Check for equality
|
String |
getHost()
Gets Host
|
String |
getPath()
Gets Path
|
Integer |
getPort()
Gets Port
|
WebSocketProtocol |
getProtocol()
Gets Protocol
|
int |
hashCode()
Calculate code for hashing based on member contents
|
void |
setHost(String host)
Sets Host
|
void |
setPath(String path)
Sets Path
|
void |
setPort(Integer port)
Sets Port
|
void |
setProtocol(WebSocketProtocol protocol)
Sets Protocol
|
String |
toString()
Stringifies the class
|
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public WebSocketAddress()
public WebSocketAddress(WebSocketAddress webSocketAddressObj)
webSocketAddressObj - reference to the object to be copiedpublic WebSocketAddress(WebSocketProtocol protocol, String host, Integer port, String path)
protocol - Websocket protocol typehost - Websocket hostport - Websocket portpath - Websocket pathpublic WebSocketProtocol getProtocol()
public void setProtocol(WebSocketProtocol protocol)
protocol - Websocket protocol typepublic String getHost()
public void setHost(String host)
host - Websocket hostpublic Integer getPort()
public void setPort(Integer port)
port - Websocket portpublic String getPath()
public void setPath(String path)
path - Websocket pathpublic String toString()
toString in class LocalAddresspublic boolean equals(Object obj)
equals in class LocalAddressobj - Reference to the object to compare topublic int hashCode()
hashCode in class LocalAddressCopyright © 2021. All rights reserved.