Class CefriumBrowser.ResourceRequest

java.lang.Object
com.cefrium.CefriumBrowser.ResourceRequest
Enclosing class:
CefriumBrowser

public static final class CefriumBrowser.ResourceRequest extends Object
A request as CefriumResourceInterceptor sees it.
  • Field Details

    • TYPE_MAIN_FRAME

      @Deprecated public static final int TYPE_MAIN_FRAME
      Deprecated.
      A page loaded into the main frame.
      See Also:
    • TYPE_SUB_FRAME

      @Deprecated public static final int TYPE_SUB_FRAME
      Deprecated.
      A page loaded into an iframe.
      See Also:
    • TYPE_STYLESHEET

      @Deprecated public static final int TYPE_STYLESHEET
      Deprecated.
      See Also:
    • TYPE_SCRIPT

      @Deprecated public static final int TYPE_SCRIPT
      Deprecated.
      See Also:
    • TYPE_IMAGE

      @Deprecated public static final int TYPE_IMAGE
      Deprecated.
      See Also:
    • TYPE_FONT

      @Deprecated public static final int TYPE_FONT
      Deprecated.
      See Also:
    • TYPE_SUB_RESOURCE

      @Deprecated public static final int TYPE_SUB_RESOURCE
      Deprecated.
      Anything else a page loads that has no type of its own.
      See Also:
    • TYPE_OBJECT

      @Deprecated public static final int TYPE_OBJECT
      Deprecated.
      <object> and <embed>.
      See Also:
    • TYPE_MEDIA

      @Deprecated public static final int TYPE_MEDIA
      Deprecated.
      Audio and video.
      See Also:
    • TYPE_WORKER

      @Deprecated public static final int TYPE_WORKER
      Deprecated.
      See Also:
    • TYPE_SHARED_WORKER

      @Deprecated public static final int TYPE_SHARED_WORKER
      Deprecated.
      See Also:
    • TYPE_PREFETCH

      @Deprecated public static final int TYPE_PREFETCH
      Deprecated.
      See Also:
    • TYPE_FAVICON

      @Deprecated public static final int TYPE_FAVICON
      Deprecated.
      See Also:
    • TYPE_XHR

      @Deprecated public static final int TYPE_XHR
      Deprecated.
      fetch() and XMLHttpRequest.
      See Also:
    • TYPE_PING

      @Deprecated public static final int TYPE_PING
      Deprecated.
      navigator.sendBeacon and <a ping>.
      See Also:
    • TYPE_SERVICE_WORKER

      @Deprecated public static final int TYPE_SERVICE_WORKER
      Deprecated.
      See Also:
    • TYPE_CSP_REPORT

      @Deprecated public static final int TYPE_CSP_REPORT
      Deprecated.
      See Also:
    • TYPE_PLUGIN_RESOURCE

      @Deprecated public static final int TYPE_PLUGIN_RESOURCE
      Deprecated.
      See Also:
    • TYPE_NAVIGATION_PRELOAD_MAIN_FRAME

      @Deprecated public static final int TYPE_NAVIGATION_PRELOAD_MAIN_FRAME
      Deprecated.
      See Also:
    • TYPE_NAVIGATION_PRELOAD_SUB_FRAME

      @Deprecated public static final int TYPE_NAVIGATION_PRELOAD_SUB_FRAME
      Deprecated.
      See Also:
    • url

      public final String url
    • method

      public final String method
    • isMainFrame

      public final boolean isMainFrame
      Whether the main frame made the request (true for its own navigation).
    • resourceType

      @Deprecated public final int resourceType
      Deprecated.
      Use getType(): these numbers are the engine's and may change with it.
      One of the TYPE_ constants.
    • documentUrl

      public final String documentUrl
      The document that made the request: for a subresource the page that loads it, for an iframe the page that holds it, for a main-frame navigation the request's own URL. For a subresource, only the page's origin (https://host/) when the page has no URL of its own (an iframe srcdoc) or when the request starts before the browser has seen the page commit, as a page's first requests can. Empty when unknown.
    • topLevelUrl

      public final String topLevelUrl
      The page in the main frame: the request's own URL for a main-frame navigation, otherwise the main frame's URL when the request starts (during a navigation, a late request of the old page can carry the new page's URL). Empty when unknown.
  • Method Details