Class RequestIntercepted


  • @Beta
    @Deprecated
    public class RequestIntercepted
    extends java.lang.Object
    Deprecated.
    Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      AuthChallenge getAuthChallenge()
      Deprecated.
      Details of the Authorization Challenge encountered.
      FrameId getFrameId()
      Deprecated.
      The id of the frame that initiated the request.
      InterceptionId getInterceptionId()
      Deprecated.
      Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch.
      java.lang.Boolean getIsDownload()
      Deprecated.
      Set if the request is a navigation that will result in a download.
      java.lang.Boolean getIsNavigationRequest()
      Deprecated.
      Whether this is a navigation request, which can abort the navigation completely.
      java.lang.String getRedirectUrl()
      Deprecated.
      Redirect location, only sent if a redirect was intercepted.
      Request getRequest()
      Deprecated.
       
      RequestId getRequestId()
      Deprecated.
      If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.
      ResourceType getResourceType()
      Deprecated.
      How the requested resource will be used.
      ErrorReason getResponseErrorReason()
      Deprecated.
      Response error if intercepted at response stage or if redirect occurred while intercepting request.
      Headers getResponseHeaders()
      Deprecated.
      Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
      java.lang.Integer getResponseStatusCode()
      Deprecated.
      Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
      • Methods inherited from class java.lang.Object

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

      • RequestIntercepted

        public RequestIntercepted​(InterceptionId interceptionId,
                                  Request request,
                                  FrameId frameId,
                                  ResourceType resourceType,
                                  java.lang.Boolean isNavigationRequest,
                                  java.lang.Boolean isDownload,
                                  java.lang.String redirectUrl,
                                  AuthChallenge authChallenge,
                                  ErrorReason responseErrorReason,
                                  java.lang.Integer responseStatusCode,
                                  Headers responseHeaders,
                                  RequestId requestId)
        Deprecated.
    • Method Detail

      • getInterceptionId

        public InterceptionId getInterceptionId()
        Deprecated.
        Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used.
      • getRequest

        public Request getRequest()
        Deprecated.
      • getFrameId

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

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

        public java.lang.Boolean getIsNavigationRequest()
        Deprecated.
        Whether this is a navigation request, which can abort the navigation completely.
      • getIsDownload

        public java.lang.Boolean getIsDownload()
        Deprecated.
        Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage).
      • getRedirectUrl

        public java.lang.String getRedirectUrl()
        Deprecated.
        Redirect location, only sent if a redirect was intercepted.
      • getAuthChallenge

        public AuthChallenge getAuthChallenge()
        Deprecated.
        Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse.
      • getResponseErrorReason

        public ErrorReason getResponseErrorReason()
        Deprecated.
        Response error if intercepted at response stage or if redirect occurred while intercepting request.
      • getResponseStatusCode

        public java.lang.Integer getResponseStatusCode()
        Deprecated.
        Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred.
      • getResponseHeaders

        public Headers getResponseHeaders()
        Deprecated.
        Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
      • getRequestId

        public RequestId getRequestId()
        Deprecated.
        If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event.