Package net.officefloor.server.http
Class HttpHeaderName
- java.lang.Object
-
- net.officefloor.server.http.HttpHeaderName
-
public class HttpHeaderName extends java.lang.Object
Means to provide commonHttpHeader
names in already encoded HTTP bytes for faster writing.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpHeaderName(java.lang.String name)
Instantiate.HttpHeaderName(java.lang.String name, boolean isMaintainCase)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Obtains the name.<B> void
write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderName
to theStreamBuffer
.
-
-
-
Constructor Detail
-
HttpHeaderName
public HttpHeaderName(java.lang.String name)
Instantiate.- Parameters:
name
-HttpHeaderName
.
-
HttpHeaderName
public HttpHeaderName(java.lang.String name, boolean isMaintainCase)
Instantiate.- Parameters:
name
-HttpHeaderName
.isMaintainCase
- Whether to maintainHttpHeaderName
case.
-
-
Method Detail
-
getName
public java.lang.String getName()
Obtains the name.- Returns:
- Name.
-
write
public <B> void write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderName
to theStreamBuffer
.- Type Parameters:
B
- Buffer type.- Parameters:
head
- HeadStreamBuffer
of linked list ofStreamBuffer
instances.bufferPool
-StreamBufferPool
.
-
-