Package io.webfolder.cdp.event.fetch
Class RequestPaused
java.lang.Object
io.webfolder.cdp.event.fetch.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()
-
Method Summary
Modifier and Type Method Description java.lang.String
getFrameId()
The id of the frame that initiated the request.Request
getRequest()
The details of the request.java.lang.String
getRequestId()
Each request the page makes will have a unique id.ResourceType
getResourceType()
How the requested resource will be used.ErrorReason
getResponseErrorReason()
Response error if intercepted at response stage.java.util.List<HeaderEntry>
getResponseHeaders()
Response headers if intercepted at the response stage.java.lang.Integer
getResponseStatusCode()
Response code if intercepted at response stage.void
setFrameId(java.lang.String frameId)
The id of the frame that initiated the request.void
setRequest(Request request)
The details of the request.void
setRequestId(java.lang.String requestId)
Each request the page makes will have a unique id.void
setResourceType(ResourceType resourceType)
How the requested resource will be used.void
setResponseErrorReason(ErrorReason responseErrorReason)
Response error if intercepted at response stage.void
setResponseHeaders(java.util.List<HeaderEntry> responseHeaders)
Response headers if intercepted at the response stage.void
setResponseStatusCode(java.lang.Integer responseStatusCode)
Response code if intercepted at response stage.
-
Constructor Details
-
RequestPaused
public RequestPaused()
-
-
Method Details
-
getRequestId
public java.lang.String getRequestId()Each request the page makes will have a unique id. -
setRequestId
public void setRequestId(java.lang.String requestId)Each request the page makes will have a unique id. -
getRequest
The details of the request. -
setRequest
The details of the request. -
getFrameId
public java.lang.String getFrameId()The id of the frame that initiated the request. -
setFrameId
public void setFrameId(java.lang.String frameId)The id of the frame that initiated the request. -
getResourceType
How the requested resource will be used. -
setResourceType
How the requested resource will be used. -
getResponseErrorReason
Response error if intercepted at response stage. -
setResponseErrorReason
Response error if intercepted at response stage. -
getResponseStatusCode
public java.lang.Integer getResponseStatusCode()Response code if intercepted at response stage. -
setResponseStatusCode
public void setResponseStatusCode(java.lang.Integer responseStatusCode)Response code if intercepted at response stage. -
getResponseHeaders
Response headers if intercepted at the response stage. -
setResponseHeaders
Response headers if intercepted at the response stage.
-