Package net.officefloor.server.http
Class HttpHeaderValue
- java.lang.Object
-
- net.officefloor.server.http.HttpHeaderValue
-
public class HttpHeaderValue extends java.lang.Object
Provides formatting of values for
HttpHeader
values.Also provides means for common
HttpHeader
values in already encoded HTTP bytes for faster writing.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpHeaderValue(java.lang.String value)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
Obtains the value.<B> void
write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderValue
to theStreamBuffer
.
-
-
-
Constructor Detail
-
HttpHeaderValue
public HttpHeaderValue(java.lang.String value)
Instantiate.- Parameters:
value
-HttpHeaderValue
.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Obtains the value.- Returns:
- value.
-
write
public <B> void write(StreamBuffer<B> head, StreamBufferPool<B> bufferPool)
Writes thisHttpHeaderValue
to theStreamBuffer
.- Type Parameters:
B
- Buffer type.- Parameters:
head
- HeadStreamBuffer
of linked list ofStreamBuffer
instances.bufferPool
-StreamBufferPool
.
-
-