Interface ReportingEndpoint


public interface ReportingEndpoint
A named endpoint to which user agents may deliver Reporting API reports.

The endpoint name is a Structured Fields dictionary key. Other response headers, such as Content Security Policy, use that name to select an endpoint. The URL may be an absolute URI or a relative URI reference, which the user agent resolves against the protected resource.

Since:
5.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the endpoint name referenced by reporting features.
    Returns the URI reference to which reports are delivered.
  • Method Details

    • getName

      String getName()
      Returns the endpoint name referenced by reporting features.
      Returns:
      the Structured Fields dictionary key for this endpoint
      Since:
      5.4.0
    • getUrl

      URI getUrl()
      Returns the URI reference to which reports are delivered.

      The URI may be absolute or relative. A user agent resolves a relative URI against the URL of the response carrying the Reporting-Endpoints header.

      Returns:
      an absolute or relative reporting endpoint URI
      Since:
      5.4.0