public class HTTPGetAction extends Object
| Constructor and Description |
|---|
HTTPGetAction()
The constructor of HTTPGetAction.
|
HTTPGetAction(String path,
int port,
String host,
String scheme,
List<HTTPHeader> httpHeaders)
The constructor of HTTPGetAction.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
List<HTTPHeader> |
getHttpHeaders() |
String |
getPath() |
int |
getPort() |
String |
getScheme() |
HTTPGetAction |
setHost(String host) |
HTTPGetAction |
setHttpHeaders(List<HTTPHeader> httpHeaders) |
HTTPGetAction |
setPath(String path) |
HTTPGetAction |
setPort(int port) |
HTTPGetAction |
setScheme(String scheme) |
public HTTPGetAction()
public HTTPGetAction(String path, int port, String host, String scheme, List<HTTPHeader> httpHeaders)
path - The path to access on the HTTP serverport - The port of the container to send the HTTP requesthost - The host name to connect to, defaults to the pod IPscheme - The scheme to use for connecting to the hosthttpHeaders - Custom headers to set in the requestpublic String getPath()
public HTTPGetAction setPath(String path)
public int getPort()
public HTTPGetAction setPort(int port)
public String getHost()
public HTTPGetAction setHost(String host)
public String getScheme()
public HTTPGetAction setScheme(String scheme)
public List<HTTPHeader> getHttpHeaders()
public HTTPGetAction setHttpHeaders(List<HTTPHeader> httpHeaders)
Copyright © 2023. All rights reserved.