Package io.jenkins.plugins.oak9.utils
Class RequestBodyBuilder
- java.lang.Object
-
- io.jenkins.plugins.oak9.utils.RequestBodyBuilder
-
public class RequestBodyBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description RequestBodyBuilder(InputStream inputStream, okhttp3.MediaType mediaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestBodyBuilder
create()
InputStream
getInputStream()
okhttp3.MediaType
getMediaType()
okhttp3.RequestBody
getRequestBody()
void
setInputStream(InputStream inputStream)
void
setMediaType(okhttp3.MediaType mediaType)
void
setRequestBody(okhttp3.RequestBody requestBody)
-
-
-
Constructor Detail
-
RequestBodyBuilder
public RequestBodyBuilder(InputStream inputStream, okhttp3.MediaType mediaType)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
-
setInputStream
public void setInputStream(InputStream inputStream)
-
getMediaType
public okhttp3.MediaType getMediaType()
-
setMediaType
public void setMediaType(okhttp3.MediaType mediaType)
-
getRequestBody
public okhttp3.RequestBody getRequestBody()
-
setRequestBody
public void setRequestBody(okhttp3.RequestBody requestBody)
-
create
public RequestBodyBuilder create()
-
-