Interface ICSPDirective

All Superinterfaces:
com.helger.base.name.IHasName
All Known Implementing Classes:
CSPDirective

public interface ICSPDirective extends com.helger.base.name.IHasName
A single CSP directive. It's a name-value-pair.
Author:
Philip Helger
  • Method Details

    • getName

      @Nonnull @Nonempty String getName()
      Specified by:
      getName in interface com.helger.base.name.IHasName
      Returns:
      The name of this directive.
    • getValue

      @Nullable String getValue()
      Returns:
      The value of this directive. May be null or empty.
    • hasValue

      default boolean hasValue()
    • getAsString

      @Nonnull @Nonempty default String getAsString()
    • getAsStringIfHasValue

      @Nullable default String getAsStringIfHasValue()