Class RequestBody
- java.lang.Object
-
- com.synopsys.defensics.apiserver.client.RequestBody
-
public class RequestBody extends Object
A helper class to contain information about the request body - content-type and BodyPublisher to get the actual content. Now the methods match the OkHttp's same-named class but can be changed if needed.
-
-
Constructor Summary
Constructors Constructor Description RequestBody(HttpRequest.BodyPublisher bodyPublisher, String contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestBody
create(HttpRequest.BodyPublisher bodyPublisher, String contentType)
HttpRequest.BodyPublisher
getBodyPublisher()
String
getContentType()
-
-
-
Constructor Detail
-
RequestBody
public RequestBody(HttpRequest.BodyPublisher bodyPublisher, String contentType)
-
-
Method Detail
-
create
public static RequestBody create(HttpRequest.BodyPublisher bodyPublisher, String contentType)
-
getBodyPublisher
public HttpRequest.BodyPublisher getBodyPublisher()
-
getContentType
public String getContentType()
-
-