Class Extension.Parameter

java.lang.Object
org.glassfish.grizzly.websockets.Extension.Parameter
Enclosing class:
Extension

public static final class Extension.Parameter extends Object
Representation of extension parameters.
  • Constructor Details

    • Parameter

      public Parameter(String name, String value)
      Constructs a new parameter based on the provided values.
      Parameters:
      name - the name of the parameter (may not be null).
      value - the value of the parameter (may be null).
      Throws:
      IllegalArgumentException - if name is null.
  • Method Details

    • getName

      public String getName()
      Returns:
      the parameter name.
    • getValue

      public String getValue()
      Returns:
      the parameter value; may be null.
    • setValue

      public void setValue(String value)
      Set the value of this parameter.
      Parameters:
      value - the value of this parameter.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object