Package jenkins.plugins.http_request
Class ResponseContentSupplier
java.lang.Object
jenkins.plugins.http_request.ResponseContentSupplier
- All Implemented Interfaces:
Serializable
,AutoCloseable
A container for the Http Response.
The container is returned as is to the Pipeline.
For the normal plugin, the container is consumed internally (since it cannot be returned).
- Author:
- Martin d'Anjou
- See Also:
-
Constructor Summary
ConstructorDescriptionResponseContentSupplier
(String content, int status) ResponseContentSupplier
(ResponseHandle responseHandle, org.apache.http.HttpResponse response) -
Method Summary
-
Constructor Details
-
ResponseContentSupplier
-
ResponseContentSupplier
public ResponseContentSupplier(ResponseHandle responseHandle, org.apache.http.HttpResponse response)
-
-
Method Details
-
getStatus
public int getStatus() -
getHeaders
-
getCharset
-
getContent
-
getContentStream
-
toString
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-