Class PostRequest<T>
java.lang.Object
org.sourcelab.github.client.request.PostRequest<T>
- Type Parameters:
T- The parsed response object from the request.
- All Implemented Interfaces:
Request<T>
- Direct Known Subclasses:
CancelWorkflowRequest,RerunJobFromWorkflowRequest,RerunWorkflowRequest
Abstract representation of a POST http request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhich HTTP Method to make the request using.The Request body value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sourcelab.github.client.request.Request
getPath, getRequestParameters, getResponseParser, parseResponse
-
Constructor Details
-
PostRequest
public PostRequest()
-
-
Method Details
-
getMethod
Description copied from interface:RequestWhich HTTP Method to make the request using. GET, POST, PUT, etc... -
getRequestBody
Description copied from interface:RequestThe Request body value.- Specified by:
getRequestBodyin interfaceRequest<T>- Returns:
- null if no request body is needed, or the request body as a String.
- Throws:
RequestParsingException- if unable to generate request body due to some error.
-