All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.cachestorage.CachedResponse Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.cachestorage;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Cached response
 */
public final class CachedResponse {
  private String body;

  @JsonCreator
  public CachedResponse(@JsonProperty("body") String body) {
    this.body = body;
  }

  public String getBody() {
    return body;
  }

  public static CachedResponse.Builder builder() {
    return new CachedResponse.Builder();
  }

  public static final class Builder {
    private String body;

    private Builder() {
    }

    public CachedResponse.Builder setBody(String body) {
      this.body = body;
      return this;
    }

    public CachedResponse build() {
      return new CachedResponse(body);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy