类 HTTPGetAction
- java.lang.Object
-
- com.baidubce.services.bci.model.common.HTTPGetAction
-
public class HTTPGetAction extends Object
HTTPGetAction describes an action based on HTTP Get requests.
-
-
构造器概要
构造器 构造器 说明 HTTPGetAction()The constructor of HTTPGetAction.HTTPGetAction(String path, int port, String host, String scheme, List<HTTPHeader> httpHeaders)The constructor of HTTPGetAction.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetHost()List<HTTPHeader>getHttpHeaders()StringgetPath()intgetPort()StringgetScheme()HTTPGetActionsetHost(String host)HTTPGetActionsetHttpHeaders(List<HTTPHeader> httpHeaders)HTTPGetActionsetPath(String path)HTTPGetActionsetPort(int port)HTTPGetActionsetScheme(String scheme)
-
-
-
构造器详细资料
-
HTTPGetAction
public HTTPGetAction()
The constructor of HTTPGetAction.
-
HTTPGetAction
public HTTPGetAction(String path, int port, String host, String scheme, List<HTTPHeader> httpHeaders)
The constructor of HTTPGetAction.- 参数:
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 request
-
-
方法详细资料
-
getPath
public String getPath()
-
setPath
public HTTPGetAction setPath(String path)
-
getPort
public int getPort()
-
setPort
public HTTPGetAction setPort(int port)
-
getHost
public String getHost()
-
setHost
public HTTPGetAction setHost(String host)
-
getScheme
public String getScheme()
-
setScheme
public HTTPGetAction setScheme(String scheme)
-
getHttpHeaders
public List<HTTPHeader> getHttpHeaders()
-
setHttpHeaders
public HTTPGetAction setHttpHeaders(List<HTTPHeader> httpHeaders)
-
-