Class CDPRequest
-
- All Implemented Interfaces:
public final class CDPRequest
-
-
Field Summary
Fields Modifier and Type Field Description private StringloaderIdprivate StringdocumentURLprivate Initiatorinitiatorprivate ResourceTypetypeprivate CDPResponseresponseprivate BooleanfromMemoryCacheprivate BooleaninterceptionHandledprivate final BooleanisActiveprivate final Stringurlprivate final PulsarWebDriverdriverprivate StringrequestIdprivate final Requestrequestprivate final StringinterceptionIdprivate final BooleanallowInterceptionprivate final Queue<WeakReference<CDPRequest>>redirectChain
-
Constructor Summary
Constructors Constructor Description CDPRequest(PulsarWebDriver driver, String requestId, Request request, String interceptionId, Boolean allowInterception, Queue<WeakReference<CDPRequest>> redirectChain)
-
Method Summary
Modifier and Type Method Description final StringgetLoaderId()Loader identifier. final UnitsetLoaderId(String loaderId)Loader identifier. final StringgetDocumentURL()URL of the document this request is loaded for. final UnitsetDocumentURL(String documentURL)URL of the document this request is loaded for. final InitiatorgetInitiator()Request initiator. final UnitsetInitiator(Initiator initiator)Request initiator. final ResourceTypegetType()Type of this resource. final UnitsetType(ResourceType type)Type of this resource. final CDPResponsegetResponse()final UnitsetResponse(CDPResponse response)final BooleangetFromMemoryCache()final UnitsetFromMemoryCache(Boolean fromMemoryCache)final BooleangetInterceptionHandled()final UnitsetInterceptionHandled(Boolean interceptionHandled)final BooleanisActive()final StringgetUrl()final PulsarWebDrivergetDriver()final StringgetRequestId()Request identifier. final UnitsetRequestId(String requestId)Request identifier. final RequestgetRequest()Request data. final StringgetInterceptionId()Request identifier. final BooleangetAllowInterception()final Queue<WeakReference<CDPRequest>>getRedirectChain()final UnitfinalizeInterceptions()final UnitcontinueRequest(ContinueRequestOverrides overrides)final Unitrespond(ResponseForRequest response)final Unitabort(ErrorReason abortErrorReason)-
-
Constructor Detail
-
CDPRequest
CDPRequest(PulsarWebDriver driver, String requestId, Request request, String interceptionId, Boolean allowInterception, Queue<WeakReference<CDPRequest>> redirectChain)
-
-
Method Detail
-
getLoaderId
final String getLoaderId()
Loader identifier. Empty string if the request is fetched from worker.
-
setLoaderId
final Unit setLoaderId(String loaderId)
Loader identifier. Empty string if the request is fetched from worker.
-
getDocumentURL
final String getDocumentURL()
URL of the document this request is loaded for.
-
setDocumentURL
final Unit setDocumentURL(String documentURL)
URL of the document this request is loaded for.
-
getInitiator
final Initiator getInitiator()
Request initiator.
-
setInitiator
final Unit setInitiator(Initiator initiator)
Request initiator.
-
getType
final ResourceType getType()
Type of this resource.
-
getResponse
final CDPResponse getResponse()
-
setResponse
final Unit setResponse(CDPResponse response)
-
getFromMemoryCache
final Boolean getFromMemoryCache()
-
setFromMemoryCache
final Unit setFromMemoryCache(Boolean fromMemoryCache)
-
getInterceptionHandled
final Boolean getInterceptionHandled()
-
setInterceptionHandled
final Unit setInterceptionHandled(Boolean interceptionHandled)
-
isActive
final Boolean isActive()
-
getUrl
final String getUrl()
-
getDriver
final PulsarWebDriver getDriver()
-
getRequestId
final String getRequestId()
Request identifier.
-
setRequestId
final Unit setRequestId(String requestId)
Request identifier.
-
getRequest
final Request getRequest()
Request data.
-
getInterceptionId
final String getInterceptionId()
Request identifier.
-
getAllowInterception
final Boolean getAllowInterception()
-
getRedirectChain
final Queue<WeakReference<CDPRequest>> getRedirectChain()
-
finalizeInterceptions
final Unit finalizeInterceptions()
-
continueRequest
final Unit continueRequest(ContinueRequestOverrides overrides)
-
respond
final Unit respond(ResponseForRequest response)
-
-
-
-