Class Directive

java.lang.Object
org.jdrupes.httpcodec.types.Directive

public class Directive extends Object
Represents a directive.
  • Constructor Details

    • Directive

      public Directive(String name, String value)
      Creates a new directive.
      Parameters:
      name - the name
      value - the value
    • Directive

      public Directive(String name, Number value)
      Convenience constructor for a directive that has a number as value.

      The given value is converted to a string.

      Parameters:
      name - the name
      value - the value
    • Directive

      public Directive(String name)
      Creates a new directive.
      Parameters:
      name - the name
  • Method Details