Class Request


  • public class Request
    extends java.lang.Object
    HTTP request data
    • Constructor Summary

      Constructors 
      Constructor Description
      Request()  
      Request​(java.lang.String url, java.lang.String urlFragment, java.lang.String method, java.util.Map<java.lang.String,​java.lang.Object> headers, java.lang.String postData, java.lang.Boolean hasPostData, MixedContentType mixedContentType, ResourcePriority initialPriority, RequestReferrerPolicy referrerPolicy, java.lang.Boolean isLinkPreload)  
    • Constructor Detail

      • Request

        public Request()
      • Request

        public Request​(java.lang.String url,
                       java.lang.String urlFragment,
                       java.lang.String method,
                       java.util.Map<java.lang.String,​java.lang.Object> headers,
                       java.lang.String postData,
                       java.lang.Boolean hasPostData,
                       MixedContentType mixedContentType,
                       ResourcePriority initialPriority,
                       RequestReferrerPolicy referrerPolicy,
                       java.lang.Boolean isLinkPreload)
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Request URL (without fragment).
      • setUrl

        public void setUrl​(java.lang.String url)
        Request URL (without fragment).
      • getUrlFragment

        public java.lang.String getUrlFragment()
        Fragment of the requested URL starting with hash, if present.
      • setUrlFragment

        public void setUrlFragment​(java.lang.String urlFragment)
        Fragment of the requested URL starting with hash, if present.
      • getMethod

        public java.lang.String getMethod()
        HTTP request method.
      • setMethod

        public void setMethod​(java.lang.String method)
        HTTP request method.
      • getHeaders

        public java.util.Map<java.lang.String,​java.lang.Object> getHeaders()
        HTTP request headers.
      • setHeaders

        public void setHeaders​(java.util.Map<java.lang.String,​java.lang.Object> headers)
        HTTP request headers.
      • getPostData

        public java.lang.String getPostData()
        HTTP POST request data.
      • setPostData

        public void setPostData​(java.lang.String postData)
        HTTP POST request data.
      • getHasPostData

        public java.lang.Boolean getHasPostData()
        True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
      • setHasPostData

        public void setHasPostData​(java.lang.Boolean hasPostData)
        True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
      • getMixedContentType

        public MixedContentType getMixedContentType()
        The mixed content type of the request.
      • setMixedContentType

        public void setMixedContentType​(MixedContentType mixedContentType)
        The mixed content type of the request.
      • getInitialPriority

        public ResourcePriority getInitialPriority()
        Priority of the resource request at the time request is sent.
      • setInitialPriority

        public void setInitialPriority​(ResourcePriority initialPriority)
        Priority of the resource request at the time request is sent.
      • getReferrerPolicy

        public RequestReferrerPolicy getReferrerPolicy()
        The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
      • setReferrerPolicy

        public void setReferrerPolicy​(RequestReferrerPolicy referrerPolicy)
        The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
      • getIsLinkPreload

        public java.lang.Boolean getIsLinkPreload()
        Whether is loaded via link preload.
      • setIsLinkPreload

        public void setIsLinkPreload​(java.lang.Boolean isLinkPreload)
        Whether is loaded via link preload.