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.
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestIntercepted​(InterceptionId interceptionId, Request request, FrameId frameId, ResourceType resourceType, java.lang.Boolean isNavigationRequest, java.util.Optional<java.lang.Boolean> isDownload, java.util.Optional<java.lang.String> redirectUrl, java.util.Optional<AuthChallenge> authChallenge, java.util.Optional<ErrorReason> responseErrorReason, java.util.Optional<java.lang.Integer> responseStatusCode, java.util.Optional<Headers> responseHeaders, java.util.Optional<RequestId> requestId)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Optional<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.util.Optional<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.util.Optional<java.lang.String> getRedirectUrl()
      Deprecated.
      Redirect location, only sent if a redirect was intercepted.
      Request getRequest()
      Deprecated.
       
      java.util.Optional<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.
      java.util.Optional<ErrorReason> getResponseErrorReason()
      Deprecated.
      Response error if intercepted at response stage or if redirect occurred while intercepting request.
      java.util.Optional<Headers> getResponseHeaders()
      Deprecated.
      Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
      java.util.Optional<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.util.Optional<java.lang.Boolean> isDownload,
                                  java.util.Optional<java.lang.String> redirectUrl,
                                  java.util.Optional<AuthChallenge> authChallenge,
                                  java.util.Optional<ErrorReason> responseErrorReason,
                                  java.util.Optional<java.lang.Integer> responseStatusCode,
                                  java.util.Optional<Headers> responseHeaders,
                                  java.util.Optional<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.util.Optional<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.util.Optional<java.lang.String> getRedirectUrl()
        Deprecated.
        Redirect location, only sent if a redirect was intercepted.
      • getAuthChallenge

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

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

        public java.util.Optional<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 java.util.Optional<Headers> getResponseHeaders()
        Deprecated.
        Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred.
      • getRequestId

        public java.util.Optional<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.