Class AuditsImpl

java.lang.Object
io.webfolder.cdp.command.AuditsImpl
All Implemented Interfaces:
Audits

public class AuditsImpl
extends java.lang.Object
implements Audits
  • Constructor Summary

    Constructors 
    Constructor Description
    AuditsImpl​(SessionInvocationHandler handler)  
  • Method Summary

    Modifier and Type Method Description
    GetEncodedResponseResult getEncodedResponse​(java.lang.String requestId, Encoding encoding)
    Returns the response body and size if it were re-encoded with the specified settings.
    GetEncodedResponseResult getEncodedResponse​(java.lang.String requestId, Encoding encoding, java.lang.Double quality, java.lang.Boolean sizeOnly)
    Returns the response body and size if it were re-encoded with the specified settings.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getEncodedResponse

      public GetEncodedResponseResult getEncodedResponse​(java.lang.String requestId, Encoding encoding, java.lang.Double quality, java.lang.Boolean sizeOnly)
      Description copied from interface: Audits
      Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
      Specified by:
      getEncodedResponse in interface Audits
      Parameters:
      requestId - Identifier of the network request to get content for.
      encoding - The encoding to use.
      quality - The quality of the encoding (0-1). (defaults to 1)
      sizeOnly - Whether to only return the size information (defaults to false).
      Returns:
      GetEncodedResponseResult
    • getEncodedResponse

      public GetEncodedResponseResult getEncodedResponse​(java.lang.String requestId, Encoding encoding)
      Description copied from interface: Audits
      Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.
      Specified by:
      getEncodedResponse in interface Audits
      Parameters:
      requestId - Identifier of the network request to get content for.
      encoding - The encoding to use.
      Returns:
      GetEncodedResponseResult