Class FrameResource


  • @Beta
    public class FrameResource
    extends java.lang.Object
    Information about the Resource on the page.
    • Constructor Summary

      Constructors 
      Constructor Description
      FrameResource​(java.lang.String url, ResourceType type, java.lang.String mimeType, java.util.Optional<TimeSinceEpoch> lastModified, java.util.Optional<java.lang.Number> contentSize, java.util.Optional<java.lang.Boolean> failed, java.util.Optional<java.lang.Boolean> canceled)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Boolean> getCanceled()
      True if the resource was canceled during loading.
      java.util.Optional<java.lang.Number> getContentSize()
      Resource content size.
      java.util.Optional<java.lang.Boolean> getFailed()
      True if the resource failed to load.
      java.util.Optional<TimeSinceEpoch> getLastModified()
      last-modified timestamp as reported by server.
      java.lang.String getMimeType()
      Resource mimeType as determined by the browser.
      ResourceType getType()
      Type of this resource.
      java.lang.String getUrl()
      Resource URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FrameResource

        public FrameResource​(java.lang.String url,
                             ResourceType type,
                             java.lang.String mimeType,
                             java.util.Optional<TimeSinceEpoch> lastModified,
                             java.util.Optional<java.lang.Number> contentSize,
                             java.util.Optional<java.lang.Boolean> failed,
                             java.util.Optional<java.lang.Boolean> canceled)
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Resource URL.
      • getType

        public ResourceType getType()
        Type of this resource.
      • getMimeType

        public java.lang.String getMimeType()
        Resource mimeType as determined by the browser.
      • getLastModified

        public java.util.Optional<TimeSinceEpoch> getLastModified()
        last-modified timestamp as reported by server.
      • getContentSize

        public java.util.Optional<java.lang.Number> getContentSize()
        Resource content size.
      • getFailed

        public java.util.Optional<java.lang.Boolean> getFailed()
        True if the resource failed to load.
      • getCanceled

        public java.util.Optional<java.lang.Boolean> getCanceled()
        True if the resource was canceled during loading.