public class EosioEndPoint
extends java.lang.Object
| Constructor and Description |
|---|
EosioEndPoint(@NotNull java.lang.String protocol,
int port,
@NotNull java.lang.String host)
Instantiates a new Eosio end point.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getHost()
Gets host.
|
@NotNull int |
getPort()
Gets port.
|
@NotNull java.lang.String |
getProtocol()
Gets protocol.
|
void |
setHost(@NotNull java.lang.String host)
Sets host.
|
void |
setPort(int port)
Sets port.
|
void |
setProtocol(@NotNull java.lang.String protocol)
Sets protocol.
|
java.net.URL |
toURL()
Return
URL object of the endpoint |
public EosioEndPoint(@NotNull
@NotNull java.lang.String protocol,
int port,
@NotNull
@NotNull java.lang.String host)
protocol - the protocolport - the porthost - the host@NotNull public @NotNull java.lang.String getProtocol()
public void setProtocol(@NotNull
@NotNull java.lang.String protocol)
protocol - the protocol@NotNull public @NotNull int getPort()
public void setPort(int port)
port - the port@NotNull public @NotNull java.lang.String getHost()
@NotNull
public void setHost(@NotNull
@NotNull java.lang.String host)
host - the hostpublic java.net.URL toURL()
throws java.net.MalformedURLException
URL object of the endpointURL object of the endpointjava.net.MalformedURLException - if an unknown protocol is specified.