Package net.officefloor.server.http
Class EntityUtil
- java.lang.Object
-
- net.officefloor.server.http.EntityUtil
-
public class EntityUtil extends java.lang.Object
HttpRequest
entity utilities.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description EntityUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
toString(HttpRequest request, java.nio.charset.Charset charset)
Obtains the HTTP entity content from theHttpRequest
.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(HttpRequest request, java.nio.charset.Charset charset) throws HttpException
Obtains the HTTP entity content from theHttpRequest
.- Parameters:
request
-HttpRequest
.charset
-Charset
. May benull
to use defaultCharset
.- Returns:
- HTTP entity content.
- Throws:
HttpException
- If fails to obtain entity content.
-
-