Class DefaultHttpHeader

java.lang.Object
cloud.piranha.webapp.impl.DefaultHttpHeader
All Implemented Interfaces:
HttpHeader

public class DefaultHttpHeader
extends java.lang.Object
implements HttpHeader
The default HttpHeader.
Author:
Manfred Riem ([email protected])
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultHttpHeader​(java.lang.String name, java.lang.String value)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void addValue​(java.lang.String value)
    Add the value.
    java.lang.String getName()
    Get the name.
    java.lang.String getValue()
    Get the value.
    java.util.Enumeration<java.lang.String> getValues()
    Get the values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultHttpHeader

      public DefaultHttpHeader​(java.lang.String name, java.lang.String value)
      Constructor.
      Parameters:
      name - the name.
      value - the value.
  • Method Details

    • addValue

      public void addValue​(java.lang.String value)
      Add the value.
      Specified by:
      addValue in interface HttpHeader
      Parameters:
      value - the value to add.
    • getName

      public java.lang.String getName()
      Get the name.
      Specified by:
      getName in interface HttpHeader
      Returns:
      the name.
    • getValue

      public java.lang.String getValue()
      Get the value.
      Specified by:
      getValue in interface HttpHeader
      Returns:
      the value.
    • getValues

      public java.util.Enumeration<java.lang.String> getValues()
      Get the values.
      Specified by:
      getValues in interface HttpHeader
      Returns:
      the values.