Package io.jenkins.plugins.sprints
Class RequestClient.RequestClientBuilder
- java.lang.Object
-
- io.jenkins.plugins.sprints.RequestClient.RequestClientBuilder
-
- Enclosing class:
- RequestClient
public static class RequestClient.RequestClientBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestClientBuilder(String url, String method)
RequestClientBuilder(String url, String method, Map<String,Object> queryParam)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse<String>
build()
RequestClient.RequestClientBuilder
setHeader(String key, String value)
RequestClient.RequestClientBuilder
setHeader(Map<String,String> header)
RequestClient.RequestClientBuilder
setJsonBodyContent(boolean isJSONBodyContent)
RequestClient.RequestClientBuilder
setParameter(String key, Object value)
-
-
-
Method Detail
-
setParameter
public RequestClient.RequestClientBuilder setParameter(String key, Object value)
-
setJsonBodyContent
public RequestClient.RequestClientBuilder setJsonBodyContent(boolean isJSONBodyContent)
-
setHeader
public RequestClient.RequestClientBuilder setHeader(Map<String,String> header)
-
setHeader
public RequestClient.RequestClientBuilder setHeader(String key, String value)
-
build
public HttpResponse<String> build() throws Exception
- Throws:
Exception
-
-