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

com.hubspot.chrome.devtools.client.core.network.RequestWillBeSentEvent Maven / Gradle / Ivy

There is a newer version: 94.0.4606.61
Show newest version
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.Event;
import com.hubspot.chrome.devtools.client.core.page.FrameId;
import com.hubspot.chrome.devtools.client.core.page.ResourceType;

/**
 * Fired when page is about to send HTTP request.
 */
public final class RequestWillBeSentEvent extends Event {
  private RequestId requestId;

  private LoaderId loaderId;

  private String documentURL;

  private Request request;

  private MonotonicTime timestamp;

  private TimeSinceEpoch wallTime;

  private Initiator initiator;

  private Response redirectResponse;

  private ResourceType type;

  private FrameId frameId;

  @JsonCreator
  public RequestWillBeSentEvent(@JsonProperty("requestId") RequestId requestId,
      @JsonProperty("loaderId") LoaderId loaderId, @JsonProperty("documentURL") String documentURL,
      @JsonProperty("request") Request request, @JsonProperty("timestamp") MonotonicTime timestamp,
      @JsonProperty("wallTime") TimeSinceEpoch wallTime,
      @JsonProperty("initiator") Initiator initiator,
      @JsonProperty("redirectResponse") Response redirectResponse,
      @JsonProperty("type") ResourceType type, @JsonProperty("frameId") FrameId frameId) {
    this.requestId = requestId;
    this.loaderId = loaderId;
    this.documentURL = documentURL;
    this.request = request;
    this.timestamp = timestamp;
    this.wallTime = wallTime;
    this.initiator = initiator;
    this.redirectResponse = redirectResponse;
    this.type = type;
    this.frameId = frameId;
  }

  public RequestId getRequestId() {
    return requestId;
  }

  public LoaderId getLoaderId() {
    return loaderId;
  }

  public String getDocumentURL() {
    return documentURL;
  }

  public Request getRequest() {
    return request;
  }

  public MonotonicTime getTimestamp() {
    return timestamp;
  }

  public TimeSinceEpoch getWallTime() {
    return wallTime;
  }

  public Initiator getInitiator() {
    return initiator;
  }

  public Response getRedirectResponse() {
    return redirectResponse;
  }

  public ResourceType getType() {
    return type;
  }

  public FrameId getFrameId() {
    return frameId;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy