APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.net.http

pack-priv Class ResponseInfoImpl

extends Object
implements ResponseInfo
Class Inheritance
All Implemented Interfaces
java.net.http.HttpResponse.ResponseInfo
Imports
java.net.http.HttpResponse.ResponseInfo, .HttpHeaders, .HttpClient

Field Summary

Modifier and TypeField and Description
private final HttpHeaders
private final int
private final HttpClient.Version

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
ResponseInfoImpl(int statusCode, HttpHeaders headers, HttpClient.Version version)

Method Summary

Modifier and TypeMethod and Description
public HttpHeaders

Returns:

the response headers
headers
()

Implements java.net.http.HttpResponse.ResponseInfo.headers.

Provides the response headers

public int

Returns:

the response status code
statusCode
()

Implements java.net.http.HttpResponse.ResponseInfo.statusCode.

Provides the response status code

public HttpClient.Version

Returns:

the response protocol version
version
()

Implements java.net.http.HttpResponse.ResponseInfo.version.

provides the response protocol version

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

headersback to summary
private final HttpHeaders headers
statusCodeback to summary
private final int statusCode
versionback to summary
private final HttpClient.Version version

Constructor Detail

ResponseInfoImplback to summary
pack-priv ResponseInfoImpl(Response response)
ResponseInfoImplback to summary
pack-priv ResponseInfoImpl(int statusCode, HttpHeaders headers, HttpClient.Version version)

Method Detail

headersback to summary
public HttpHeaders headers()

Implements java.net.http.HttpResponse.ResponseInfo.headers.

Provides the response headers

Returns:HttpHeaders

the response headers

statusCodeback to summary
public int statusCode()

Implements java.net.http.HttpResponse.ResponseInfo.statusCode.

Provides the response status code

Returns:int

the response status code

versionback to summary
public HttpClient.Version version()

Implements java.net.http.HttpResponse.ResponseInfo.version.

provides the response protocol version

Returns:HttpClient.Version

the response protocol version