public class HttpConfiguration extends Object
| Constructor and Description |
|---|
HttpConfiguration()
Create a HttpConfiguration object with all defaults in place.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint()
Get the endpoint/destination for the request.
|
int |
getTimeout()
The timeout for a request to Fire.
|
boolean |
isOnlyAllowHttps()
Check is HTTPS the only allowed scheme (protocol) to the endpoint.
|
void |
setEndpoint(String endpoint)
Set the endpoint/destination for the request.
|
void |
setOnlyAllowHttps(boolean onlyAllowHttps)
Set whether (true) or not (false) HTTPS is the only allowed scheme (protocol) to the endpoint.
|
void |
setTimeout(int timeout)
Set the timeout, in milli-seconds, for sending a request to Fire.
|
public HttpConfiguration()
public String getEndpoint()
public void setEndpoint(String endpoint)
endpoint - the endpoint to setpublic int getTimeout()
public void setTimeout(int timeout)
timeout - the timeout to setpublic boolean isOnlyAllowHttps()
public void setOnlyAllowHttps(boolean onlyAllowHttps)
onlyAllowHttps - the onlyAllowHttps to setCopyright © 2019. All rights reserved.