Package net.officefloor.server.http
Class HttpVersion
java.lang.Object
net.officefloor.server.http.HttpVersion
- All Implemented Interfaces:
Serializable
HTTP version.
- Author:
- Daniel Sagenschneider
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic HttpVersionHttpVersion1.0.static HttpVersionHttpVersion1.1. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEnum()Obtains theHttpVersion.HttpVersionEnumfor thisHttpVersion.static HttpVersiongetHttpVersion(String version) Obtains theHttpVersion.getName()Obtains theHttpVersionname.inthashCode()booleanisEqual(HttpVersion httpMethod) Equals without the type checking.toString()<B> voidwrite(StreamBuffer<B> head, StreamBufferPool<B> bufferPool) Writes thisHttpStatusto theStreamBuffer.
-
Field Details
-
HTTP_1_0
HttpVersion1.0. -
HTTP_1_1
HttpVersion1.1.
-
-
Constructor Details
-
HttpVersion
Instantiate a dynamicHttpVersion.- Parameters:
name- Name of theHttpVersion.
-
-
Method Details
-
getHttpVersion
Obtains theHttpVersion.- Parameters:
version-HttpVersion.- Returns:
HttpVersion.
-
isEqual
Equals without the type checking.- Parameters:
httpMethod-HttpVersion.- Returns:
trueif sameHttpVersion.
-
getEnum
Obtains theHttpVersion.HttpVersionEnumfor thisHttpVersion.- Returns:
HttpVersion.HttpVersionEnum.
-
getName
Obtains theHttpVersionname.- Returns:
HttpVersionname.
-
write
Writes thisHttpStatusto theStreamBuffer.- Type Parameters:
B- Buffer type.- Parameters:
head- HeadStreamBufferof the linked list ofStreamBufferinstances.bufferPool-StreamBufferPool.
-
hashCode
public int hashCode() -
equals
-
toString
-