Package cloud.piranha.webapp.impl
Class DefaultHttpHeader
- java.lang.Object
-
- cloud.piranha.webapp.impl.DefaultHttpHeader
-
- All Implemented Interfaces:
HttpHeader
public class DefaultHttpHeader extends Object implements HttpHeader
The default HttpHeader.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpHeader(String name, String value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(String value)
Add the value.String
getName()
Get the name.String
getValue()
Get the value.Enumeration<String>
getValues()
Get the values.
-
-
-
Method Detail
-
addValue
public void addValue(String value)
Add the value.- Specified by:
addValue
in interfaceHttpHeader
- Parameters:
value
- the value to add.
-
getName
public String getName()
Get the name.- Specified by:
getName
in interfaceHttpHeader
- Returns:
- the name.
-
getValue
public String getValue()
Get the value.- Specified by:
getValue
in interfaceHttpHeader
- Returns:
- the value.
-
getValues
public Enumeration<String> getValues()
Get the values.- Specified by:
getValues
in interfaceHttpHeader
- Returns:
- the values.
-
-