All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.hubspot.chrome.devtools.client.core.network.Response Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.network;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.security.SecurityState;
/**
* HTTP response data.
*/
public final class Response {
private String url;
private Integer status;
private String statusText;
private Headers headers;
private String headersText;
private String mimeType;
private Headers requestHeaders;
private String requestHeadersText;
private Boolean connectionReused;
private Number connectionId;
private String remoteIPAddress;
private Integer remotePort;
private Boolean fromDiskCache;
private Boolean fromServiceWorker;
private Number encodedDataLength;
private ResourceTiming timing;
private String protocol;
private SecurityState securityState;
private SecurityDetails securityDetails;
@JsonCreator
public Response(@JsonProperty("url") String url, @JsonProperty("status") Integer status,
@JsonProperty("statusText") String statusText, @JsonProperty("headers") Headers headers,
@JsonProperty("headersText") String headersText, @JsonProperty("mimeType") String mimeType,
@JsonProperty("requestHeaders") Headers requestHeaders,
@JsonProperty("requestHeadersText") String requestHeadersText,
@JsonProperty("connectionReused") Boolean connectionReused,
@JsonProperty("connectionId") Number connectionId,
@JsonProperty("remoteIPAddress") String remoteIPAddress,
@JsonProperty("remotePort") Integer remotePort,
@JsonProperty("fromDiskCache") Boolean fromDiskCache,
@JsonProperty("fromServiceWorker") Boolean fromServiceWorker,
@JsonProperty("encodedDataLength") Number encodedDataLength,
@JsonProperty("timing") ResourceTiming timing, @JsonProperty("protocol") String protocol,
@JsonProperty("securityState") SecurityState securityState,
@JsonProperty("securityDetails") SecurityDetails securityDetails) {
this.url = url;
this.status = status;
this.statusText = statusText;
this.headers = headers;
this.headersText = headersText;
this.mimeType = mimeType;
this.requestHeaders = requestHeaders;
this.requestHeadersText = requestHeadersText;
this.connectionReused = connectionReused;
this.connectionId = connectionId;
this.remoteIPAddress = remoteIPAddress;
this.remotePort = remotePort;
this.fromDiskCache = fromDiskCache;
this.fromServiceWorker = fromServiceWorker;
this.encodedDataLength = encodedDataLength;
this.timing = timing;
this.protocol = protocol;
this.securityState = securityState;
this.securityDetails = securityDetails;
}
public String getUrl() {
return url;
}
public Integer getStatus() {
return status;
}
public String getStatusText() {
return statusText;
}
public Headers getHeaders() {
return headers;
}
public String getHeadersText() {
return headersText;
}
public String getMimeType() {
return mimeType;
}
public Headers getRequestHeaders() {
return requestHeaders;
}
public String getRequestHeadersText() {
return requestHeadersText;
}
public Boolean getConnectionReused() {
return connectionReused;
}
public Number getConnectionId() {
return connectionId;
}
public String getRemoteIPAddress() {
return remoteIPAddress;
}
public Integer getRemotePort() {
return remotePort;
}
public Boolean getFromDiskCache() {
return fromDiskCache;
}
public Boolean getFromServiceWorker() {
return fromServiceWorker;
}
public Number getEncodedDataLength() {
return encodedDataLength;
}
public ResourceTiming getTiming() {
return timing;
}
public String getProtocol() {
return protocol;
}
public SecurityState getSecurityState() {
return securityState;
}
public SecurityDetails getSecurityDetails() {
return securityDetails;
}
public static Response.Builder builder() {
return new Response.Builder();
}
public static final class Builder {
private String url;
private Integer status;
private String statusText;
private Headers headers;
private String headersText;
private String mimeType;
private Headers requestHeaders;
private String requestHeadersText;
private Boolean connectionReused;
private Number connectionId;
private String remoteIPAddress;
private Integer remotePort;
private Boolean fromDiskCache;
private Boolean fromServiceWorker;
private Number encodedDataLength;
private ResourceTiming timing;
private String protocol;
private SecurityState securityState;
private SecurityDetails securityDetails;
private Builder() {
}
public Response.Builder setUrl(String url) {
this.url = url;
return this;
}
public Response.Builder setStatus(Integer status) {
this.status = status;
return this;
}
public Response.Builder setStatusText(String statusText) {
this.statusText = statusText;
return this;
}
public Response.Builder setHeaders(Headers headers) {
this.headers = headers;
return this;
}
public Response.Builder setHeadersText(String headersText) {
this.headersText = headersText;
return this;
}
public Response.Builder setMimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
public Response.Builder setRequestHeaders(Headers requestHeaders) {
this.requestHeaders = requestHeaders;
return this;
}
public Response.Builder setRequestHeadersText(String requestHeadersText) {
this.requestHeadersText = requestHeadersText;
return this;
}
public Response.Builder setConnectionReused(Boolean connectionReused) {
this.connectionReused = connectionReused;
return this;
}
public Response.Builder setConnectionId(Number connectionId) {
this.connectionId = connectionId;
return this;
}
public Response.Builder setRemoteIPAddress(String remoteIPAddress) {
this.remoteIPAddress = remoteIPAddress;
return this;
}
public Response.Builder setRemotePort(Integer remotePort) {
this.remotePort = remotePort;
return this;
}
public Response.Builder setFromDiskCache(Boolean fromDiskCache) {
this.fromDiskCache = fromDiskCache;
return this;
}
public Response.Builder setFromServiceWorker(Boolean fromServiceWorker) {
this.fromServiceWorker = fromServiceWorker;
return this;
}
public Response.Builder setEncodedDataLength(Number encodedDataLength) {
this.encodedDataLength = encodedDataLength;
return this;
}
public Response.Builder setTiming(ResourceTiming timing) {
this.timing = timing;
return this;
}
public Response.Builder setProtocol(String protocol) {
this.protocol = protocol;
return this;
}
public Response.Builder setSecurityState(SecurityState securityState) {
this.securityState = securityState;
return this;
}
public Response.Builder setSecurityDetails(SecurityDetails securityDetails) {
this.securityDetails = securityDetails;
return this;
}
public Response build() {
return new Response(url, status, statusText, headers, headersText, mimeType, requestHeaders, requestHeadersText, connectionReused, connectionId, remoteIPAddress, remotePort, fromDiskCache, fromServiceWorker, encodedDataLength, timing, protocol, securityState, securityDetails);
}
}
}