Package joynr.system.RoutingTypes
Class WebSocketAddress
- java.lang.Object
-
- joynr.system.RoutingTypes.Address
-
- joynr.system.RoutingTypes.LocalAddress
-
- joynr.system.RoutingTypes.WebSocketAddress
-
- All Implemented Interfaces:
JoynrType,Serializable
public class WebSocketAddress extends LocalAddress implements Serializable, JoynrType
Websocket address- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description WebSocketAddress()Default ConstructorWebSocketAddress(WebSocketAddress webSocketAddressObj)Copy constructorWebSocketAddress(WebSocketProtocol protocol, String host, Integer port, String path)Parameterized constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityStringgetHost()Gets HostStringgetPath()Gets PathIntegergetPort()Gets PortWebSocketProtocolgetProtocol()Gets ProtocolinthashCode()Calculate code for hashing based on member contentsvoidsetHost(String host)Sets HostvoidsetPath(String path)Sets PathvoidsetPort(Integer port)Sets PortvoidsetProtocol(WebSocketProtocol protocol)Sets ProtocolStringtoString()Stringifies the class
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebSocketAddress
public WebSocketAddress()
Default Constructor
-
WebSocketAddress
public WebSocketAddress(WebSocketAddress webSocketAddressObj)
Copy constructor- Parameters:
webSocketAddressObj- reference to the object to be copied
-
WebSocketAddress
public WebSocketAddress(WebSocketProtocol protocol, String host, Integer port, String path)
Parameterized constructor- Parameters:
protocol- Websocket protocol typehost- Websocket hostport- Websocket portpath- Websocket path
-
-
Method Detail
-
getProtocol
public WebSocketProtocol getProtocol()
Gets Protocol- Returns:
- Websocket protocol type
-
setProtocol
public void setProtocol(WebSocketProtocol protocol)
Sets Protocol- Parameters:
protocol- Websocket protocol type
-
getHost
public String getHost()
Gets Host- Returns:
- Websocket host
-
setHost
public void setHost(String host)
Sets Host- Parameters:
host- Websocket host
-
getPort
public Integer getPort()
Gets Port- Returns:
- Websocket port
-
setPort
public void setPort(Integer port)
Sets Port- Parameters:
port- Websocket port
-
getPath
public String getPath()
Gets Path- Returns:
- Websocket path
-
setPath
public void setPath(String path)
Sets Path- Parameters:
path- Websocket path
-
toString
public String toString()
Stringifies the class- Overrides:
toStringin classLocalAddress- Returns:
- stringified class content
-
equals
public boolean equals(Object obj)
Check for equality- Overrides:
equalsin classLocalAddress- Parameters:
obj- Reference to the object to compare to- Returns:
- true, if objects are equal, false otherwise
-
hashCode
public int hashCode()
Calculate code for hashing based on member contents- Overrides:
hashCodein classLocalAddress- Returns:
- The calculated hash code
-
-