Class GoPluginApiResponse
java.lang.Object
com.thoughtworks.go.plugin.api.response.GoPluginApiResponse
- Direct Known Subclasses:
DefaultGoPluginApiResponse
Provides an abstraction for api response sent from plugin to Go
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringProvides json formatted response bodyabstract intProvides response code for the request sentProvides response headers as key value pair for the response.
-
Constructor Details
-
GoPluginApiResponse
public GoPluginApiResponse()
-
-
Method Details
-
responseCode
public abstract int responseCode()Provides response code for the request sent- Returns:
-
responseHeaders
Provides response headers as key value pair for the response. Response headers can be used to send any meta information related to response- Returns:
- request headers as a Map
-
responseBody
Provides json formatted response body- Returns:
- response body
-