Package net.officefloor.server.http
Class HttpHeaderName
- java.lang.Object
-
- net.officefloor.server.http.HttpHeaderName
-
public class HttpHeaderName extends java.lang.ObjectMeans to provide commonHttpHeadernames 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.StringgetName()Obtains the name.<B> voidwrite(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)Writes thisHttpHeaderNameto 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 maintainHttpHeaderNamecase.
-
-
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 thisHttpHeaderNameto theStreamBuffer.- Type Parameters:
B- Buffer type.- Parameters:
head- HeadStreamBufferof linked list ofStreamBufferinstances.bufferPool-StreamBufferPool.
-
-