Class Result

    • Constructor Summary

      Constructors 
      Constructor Description
      Result()  
      Result​(java.lang.String description)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void apply​(Http.Request request, Http.Response response)  
      protected java.lang.String getEncoding()
      The encoding that should be used when writing this response to the client
      protected void setContentTypeIfNotSet​(Http.Response response, java.lang.String contentType)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • Result

        public Result()
      • Result

        public Result​(java.lang.String description)
    • Method Detail

      • setContentTypeIfNotSet

        protected void setContentTypeIfNotSet​(Http.Response response,
                                              java.lang.String contentType)
      • getEncoding

        protected java.lang.String getEncoding()
        The encoding that should be used when writing this response to the client
        Returns:
        The encoding of the response