Top Description Fields Constructors Methods
io.undertow.client

public final Class ClientResponse

extends AbstractAttachable
Class Inheritance
Imports
io.undertow.util.AbstractAttachable, .HeaderMap, .HttpString

A client response. This just contains the parsed response header, the response body can be read from the ClientExchange.
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final HttpString
private final int
private final HeaderMap
private final String

Constructor Summary

AccessConstructor and Description
public
ClientResponse(int responseCode, String status, HttpString protocol)

public
ClientResponse(int responseCode, String status, HttpString protocol, HeaderMap headers)

Method Summary

Modifier and TypeMethod and Description
public HttpString
public int
public HeaderMap
public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from io.undertow.util.AbstractAttachable:
addToAttachmentListcreateAttachmentMapgetAttachmentgetAttachmentListputAttachmentremoveAttachment

Field Detail

protocolback to summary
private final HttpString protocol
responseCodeback to summary
private final int responseCode
responseHeadersback to summary
private final HeaderMap responseHeaders
statusback to summary
private final String status

Constructor Detail

ClientResponseback to summary
public ClientResponse(int responseCode, String status, HttpString protocol)
ClientResponseback to summary
public ClientResponse(int responseCode, String status, HttpString protocol, HeaderMap headers)

Method Detail

getProtocolback to summary
public HttpString getProtocol()
getResponseCodeback to summary
public int getResponseCode()
getResponseHeadersback to summary
public HeaderMap getResponseHeaders()
getStatusback to summary
public String getStatus()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override