Package net.officefloor.server.http
Class WritableHttpHeader
- java.lang.Object
-
- net.officefloor.server.http.WritableHttpHeader
-
- All Implemented Interfaces:
HttpHeader
public class WritableHttpHeader extends java.lang.Object implements HttpHeader
WritableHttpHeader
.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description WritableHttpHeader
next
NextWritableHttpHeader
to enable chaining together into linked list.
-
Constructor Summary
Constructors Constructor Description WritableHttpHeader(java.lang.String name, java.lang.String value)
Instantiate.WritableHttpHeader(java.lang.String name, HttpHeaderValue value)
Instantiate.WritableHttpHeader(HttpHeaderName name, java.lang.String value)
Instantiate.WritableHttpHeader(HttpHeaderName name, HttpHeaderValue value)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Obtains the name of theHttpHeader
.java.lang.String
getValue()
Obtains the value for theHttpHeader
.<B> void
write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeader
to theStreamBuffer
.
-
-
-
Field Detail
-
next
public WritableHttpHeader next
NextWritableHttpHeader
to enable chaining together into linked list.
-
-
Constructor Detail
-
WritableHttpHeader
public WritableHttpHeader(HttpHeaderName name, HttpHeaderValue value)
Instantiate.- Parameters:
name
-HttpHeaderName
.value
-HttpHeaderValue
.
-
WritableHttpHeader
public WritableHttpHeader(HttpHeaderName name, java.lang.String value)
Instantiate.- Parameters:
name
-HttpHeaderName
.value
-HttpHeaderValue
.
-
WritableHttpHeader
public WritableHttpHeader(java.lang.String name, HttpHeaderValue value)
Instantiate.- Parameters:
name
-HttpHeaderName
.value
-HttpHeaderValue
.
-
WritableHttpHeader
public WritableHttpHeader(java.lang.String name, java.lang.String value)
Instantiate.- Parameters:
name
-HttpHeaderName
.value
-HttpHeaderValue
.
-
-
Method Detail
-
write
public <B> void write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeader
to theStreamBuffer
.- Type Parameters:
B
- Buffer type.- Parameters:
head
- HeadStreamBuffer
of linked list ofStreamBuffer
instances.bufferPool
-StreamBufferPool
.
-
getName
public java.lang.String getName()
Description copied from interface:HttpHeader
Obtains the name of theHttpHeader
.- Specified by:
getName
in interfaceHttpHeader
- Returns:
- Name of the
HttpHeader
.
-
getValue
public java.lang.String getValue()
Description copied from interface:HttpHeader
Obtains the value for theHttpHeader
.- Specified by:
getValue
in interfaceHttpHeader
- Returns:
- Value for the
HttpHeader
.
-
-