Module org.htmlunit

Class SecurityPolicyViolationEvent

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.Event
org.htmlunit.javascript.host.event.SecurityPolicyViolationEvent
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class SecurityPolicyViolationEvent extends Event
A JavaScript object for SecurityPolicyViolationEvent.
Author:
Ahmed Ashour, Ronald Brill
See Also:
  • Field Details

    • TYPE_SECURITY_POLICY_VIOLATION

      public static final String TYPE_SECURITY_POLICY_VIOLATION
      The event type.
      See Also:
    • DISPOSITION_ENFORCE

      public static final String DISPOSITION_ENFORCE
      Disposition of enforced policies.
      See Also:
    • DISPOSITION_REPORT

      public static final String DISPOSITION_REPORT
      Disposition of report only policies.
      See Also:
  • Constructor Details

    • SecurityPolicyViolationEvent

      public SecurityPolicyViolationEvent()
      Default constructor used to build the prototype.
    • SecurityPolicyViolationEvent

      public SecurityPolicyViolationEvent(DomNode target)
      Creates a new securitypolicyviolation event (bubbling, not cancelable) for the given target.
      Parameters:
      target - the DOM node the event is fired at
  • Method Details

    • jsConstructor

      public void jsConstructor(String type, org.htmlunit.corejs.javascript.ScriptableObject details)
      Creates an instance of this event.
      Overrides:
      jsConstructor in class Event
      Parameters:
      type - the event type
      details - the event details (optional)
    • isComposed

      public boolean isComposed()
      Returns the composed property.
      Overrides:
      isComposed in class Event
      Returns:
      false as the default implementation
    • getDocumentURI

      public String getDocumentURI()
      Returns the documentURI property.
      Returns:
      the documentURI
    • setDocumentURI

      public void setDocumentURI(String documentURI)
      Sets the documentURI property.
      Parameters:
      documentURI - the new value
    • getReferrer

      public String getReferrer()
      Returns the referrer property.
      Returns:
      the referrer
    • setReferrer

      public void setReferrer(String referrer)
      Sets the referrer property.
      Parameters:
      referrer - the new value
    • getBlockedURI

      public String getBlockedURI()
      Returns the blockedURI property.
      Returns:
      the blockedURI
    • setBlockedURI

      public void setBlockedURI(String blockedURI)
      Sets the blockedURI property.
      Parameters:
      blockedURI - the new value
    • getEffectiveDirective

      public String getEffectiveDirective()
      Returns the effectiveDirective property.
      Returns:
      the effectiveDirective
    • setEffectiveDirective

      public void setEffectiveDirective(String effectiveDirective)
      Sets the effectiveDirective property.
      Parameters:
      effectiveDirective - the new value
    • getViolatedDirective

      public String getViolatedDirective()
      Returns the violatedDirective property.
      Returns:
      the violatedDirective
    • setViolatedDirective

      public void setViolatedDirective(String violatedDirective)
      Sets the violatedDirective property.
      Parameters:
      violatedDirective - the new value
    • getOriginalPolicy

      public String getOriginalPolicy()
      Returns the originalPolicy property.
      Returns:
      the originalPolicy
    • setOriginalPolicy

      public void setOriginalPolicy(String originalPolicy)
      Sets the originalPolicy property.
      Parameters:
      originalPolicy - the new value
    • getSourceFile

      public String getSourceFile()
      Returns the sourceFile property.
      Returns:
      the sourceFile
    • setSourceFile

      public void setSourceFile(String sourceFile)
      Sets the sourceFile property.
      Parameters:
      sourceFile - the new value
    • getSample

      public String getSample()
      Returns the sample property.
      Returns:
      the sample
    • setSample

      public void setSample(String sample)
      Sets the sample property.
      Parameters:
      sample - the new value
    • getDisposition

      public String getDisposition()
      Returns the disposition property.
      Returns:
      the disposition
    • setDisposition

      public void setDisposition(String disposition)
      Sets the disposition property.
      Parameters:
      disposition - the new value
    • getStatusCode

      public int getStatusCode()
      Returns the statusCode property.
      Returns:
      the statusCode
    • setStatusCode

      public void setStatusCode(int statusCode)
      Sets the statusCode property.
      Parameters:
      statusCode - the new value
    • getLineNumber

      public int getLineNumber()
      Returns the lineNumber property.
      Returns:
      the lineNumber
    • setLineNumber

      public void setLineNumber(int lineNumber)
      Sets the lineNumber property.
      Parameters:
      lineNumber - the new value
    • getColumnNumber

      public int getColumnNumber()
      Returns the columnNumber property.
      Returns:
      the columnNumber
    • setColumnNumber

      public void setColumnNumber(int columnNumber)
      Sets the columnNumber property.
      Parameters:
      columnNumber - the new value