Class 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 the HttpRequest.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntityUtil

        public EntityUtil()
    • Method Detail

      • toString

        public static java.lang.String toString​(HttpRequest request,
                                                java.nio.charset.Charset charset)
                                         throws HttpException
        Obtains the HTTP entity content from the HttpRequest.
        Parameters:
        request - HttpRequest.
        charset - Charset. May be null to use default Charset.
        Returns:
        HTTP entity content.
        Throws:
        HttpException - If fails to obtain entity content.