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, java.lang.String status, HttpString protocol)
ClientResponse(int responseCode, java.lang.String status, HttpString protocol, HeaderMap headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpString
getProtocol()
int
getResponseCode()
HeaderMap
getResponseHeaders()
java.lang.String
getStatus()
java.lang.String
toString()
-
Methods inherited from class io.undertow.util.AbstractAttachable
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
-
-
-
Constructor Detail
-
ClientResponse
public ClientResponse(int responseCode, java.lang.String status, HttpString protocol)
-
ClientResponse
public ClientResponse(int responseCode, java.lang.String status, HttpString protocol, HeaderMap headers)
-
-
Method Detail
-
getResponseHeaders
public HeaderMap getResponseHeaders()
-
getProtocol
public HttpString getProtocol()
-
getResponseCode
public int getResponseCode()
-
getStatus
public java.lang.String getStatus()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-