Class RequestPaused


  • public class RequestPaused
    extends java.lang.Object
    Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise.
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestPaused​(RequestId requestId, Request request, FrameId frameId, ResourceType resourceType, java.util.Optional<ErrorReason> responseErrorReason, java.util.Optional<java.lang.Integer> responseStatusCode, java.util.Optional<java.lang.String> responseStatusText, java.util.Optional<java.util.List<HeaderEntry>> responseHeaders, java.util.Optional<RequestId> networkId, java.util.Optional<RequestId> redirectedRequestId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FrameId getFrameId()
      The id of the frame that initiated the request.
      java.util.Optional<RequestId> getNetworkId()
      If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
      java.util.Optional<RequestId> getRedirectedRequestId()
      If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
      Request getRequest()
      The details of the request.
      RequestId getRequestId()
      Each request the page makes will have a unique id.
      ResourceType getResourceType()
      How the requested resource will be used.
      java.util.Optional<ErrorReason> getResponseErrorReason()
      Response error if intercepted at response stage.
      java.util.Optional<java.util.List<HeaderEntry>> getResponseHeaders()
      Response headers if intercepted at the response stage.
      java.util.Optional<java.lang.Integer> getResponseStatusCode()
      Response code if intercepted at response stage.
      java.util.Optional<java.lang.String> getResponseStatusText()
      Response status text if intercepted at response stage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestPaused

        public RequestPaused​(RequestId requestId,
                             Request request,
                             FrameId frameId,
                             ResourceType resourceType,
                             java.util.Optional<ErrorReason> responseErrorReason,
                             java.util.Optional<java.lang.Integer> responseStatusCode,
                             java.util.Optional<java.lang.String> responseStatusText,
                             java.util.Optional<java.util.List<HeaderEntry>> responseHeaders,
                             java.util.Optional<RequestId> networkId,
                             java.util.Optional<RequestId> redirectedRequestId)
    • Method Detail

      • getRequestId

        public RequestId getRequestId()
        Each request the page makes will have a unique id.
      • getRequest

        public Request getRequest()
        The details of the request.
      • getFrameId

        public FrameId getFrameId()
        The id of the frame that initiated the request.
      • getResourceType

        public ResourceType getResourceType()
        How the requested resource will be used.
      • getResponseErrorReason

        public java.util.Optional<ErrorReason> getResponseErrorReason()
        Response error if intercepted at response stage.
      • getResponseStatusCode

        public java.util.Optional<java.lang.Integer> getResponseStatusCode()
        Response code if intercepted at response stage.
      • getResponseStatusText

        public java.util.Optional<java.lang.String> getResponseStatusText()
        Response status text if intercepted at response stage.
      • getResponseHeaders

        public java.util.Optional<java.util.List<HeaderEntry>> getResponseHeaders()
        Response headers if intercepted at the response stage.
      • getNetworkId

        public java.util.Optional<RequestId> getNetworkId()
        If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
      • getRedirectedRequestId

        @Beta
        public java.util.Optional<RequestId> getRedirectedRequestId()
        If the request is due to a redirect response from the server, the id of the request that has caused the redirect.