Http Response Data

Data Object representing the response from an HTTP Request executed by an HTTP Component. This data object contains the data and metadata returned by the HTTP server in response to a request. This includes not only the response body, but the headers and cookies as well.

Class name: com.datashyft.pipeline.dataobjects.HTTPResponse

HTTPResponseBuilder.create() — Creates a builder object that is used build HTTP Response objects.  It has setter methods for each of the HTTP Response object’s attributes.

getBody() — Returns the body for this HTTP Response

getCookies() — Returns a map containing the Cookies associated with this response.

getHeaders() — Returns a Map containing the HTTP response readers

getMethod() — Returns the HTTP Method that was executed to generate this response.

getPath() — Returns the path of the HTTP call.

getStatusCode() — Returns the Status Code returned by the server with this response.


This class also includes a Builder that can be used to more easily construct HTTP Response objects.

Class name: com.datashyft.pipeline.dataobjects.HTTPResponse.HttpResponseBuilder

setMethod(String method) — Returns the body for this HTTP Response

setPath(String path) — Sets the HTTP method of the request that generated this response.

addHeader(String headerName, String headerValue) — Adds the specified header to the HTTP Response object.

addCookie(String cookieName, String cookieValue) — Adds the specified cookie to the HTTP Response object.

setBody(ByteBuffer body) — Sets the response body.

setBody(MultiByteBuffer budy) — Sets the response body.

setStatusCode() — Sets the HTTP response status code.

setTags() — Sets the Tags that are to be assigned to the HTTP Response object.

build() — Constructs the HTTP Response object that has been configured using the builder.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us