public class HttpLocation extends Object
Constructor and Description |
---|
HttpLocation()
Creates a new
HttpLocation instance. |
HttpLocation(HttpLocation other)
Creates a new
HttpLocation instance by copying another instance. |
HttpLocation(JsonObject json)
Creates a new
HttpLocation from the given json object |
Modifier and Type | Method and Description |
---|---|
String |
getEndpoint() |
String |
getHost() |
int |
getPort() |
String |
getRoot() |
boolean |
isSsl() |
HttpLocation |
setEndpoint(String endpoint)
Sets the endpoint, which is the URL of the service.
|
HttpLocation |
setHost(String host)
Sets the host.
|
HttpLocation |
setPort(int port)
Sets the port
|
HttpLocation |
setRoot(String root)
Sets the path of the service (root)
|
HttpLocation |
setSsl(boolean ssl)
Sets whether or not the HTTP service is using
https . |
JsonObject |
toJson() |
public HttpLocation()
HttpLocation
instance.public HttpLocation(HttpLocation other)
HttpLocation
instance by copying another instance.other
- the instance fo copypublic HttpLocation(JsonObject json)
HttpLocation
from the given json objectjson
- the json objectpublic JsonObject toJson()
HttpLocation
.public String getHost()
public HttpLocation setHost(String host)
host
- the hostHttpLocation
public HttpLocation setEndpoint(String endpoint)
endpoint
- the endpointHttpLocation
public String getEndpoint()
public int getPort()
public HttpLocation setPort(int port)
port
- the portHttpLocation
public String getRoot()
public HttpLocation setRoot(String root)
root
- the rootHttpLocation
public HttpLocation setSsl(boolean ssl)
https
.ssl
- true
to denotes that the service use https
HttpLocation
public boolean isSsl()
true
if the location is using https
, false
otherwise.Copyright © 2020 Eclipse. All rights reserved.