Package io.undertow.client
Class ClientResponse
- java.lang.Object
-
- io.undertow.util.AbstractAttachable
-
- io.undertow.client.ClientResponse
-
- All Implemented Interfaces:
Attachable
public final class ClientResponse extends AbstractAttachable
A client response. This just contains the parsed response header, the response body can be read from theClientExchange.- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ClientResponse(int responseCode, String status, HttpString protocol)ClientResponse(int responseCode, String status, HttpString protocol, HeaderMap headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpStringgetProtocol()intgetResponseCode()HeaderMapgetResponseHeaders()StringgetStatus()-
Methods inherited from class io.undertow.util.AbstractAttachable
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
-
-
-
Constructor Detail
-
ClientResponse
public ClientResponse(int responseCode, String status, HttpString protocol)
-
ClientResponse
public ClientResponse(int responseCode, String status, HttpString protocol, HeaderMap headers)
-
-
Method Detail
-
getResponseHeaders
public HeaderMap getResponseHeaders()
-
getProtocol
public HttpString getProtocol()
-
getResponseCode
public int getResponseCode()
-
getStatus
public String getStatus()
-
-