Class Origin

All Implemented Interfaces:

public class Origin extends Object implements Serializable
Any URL2 has an Origin associated with it, for security filtering.
See Also:
  • Field Details

    • ROOT

      public static final Origin ROOT
  • Constructor Details

  • Method Details

    • getURL

      public URL2 getURL()
      Return the URL2 of the origin.
    • getCrossOrigin

      public Origin.CrossOrigin getCrossOrigin()
      Return the "CrossOrigin" field of the origin. This is typically "None", but may be set to another value to make any requests for a URL with this Origin include the "Origin" HTTP header, and honour the "Access-Control-Allow-Origin" header in the response.
    • getReferrerPolicy

      public ReferrerPolicy getReferrerPolicy()
      Set the "Referrer Policy" field of the origin. This controls the value of the "Referer" header in any requests for a resource from this origin.
    • toString

      public String toString()
      toString in class Object