Class StringResponse


public class StringResponse extends ServiceResponse<String>
Author:
Andrea Di Cesare <[email protected]>
  • Method Details

    • init

      public static StringResponse init(io.undertow.server.HttpServerExchange exchange)
    • of

      public static StringResponse of(io.undertow.server.HttpServerExchange exchange)
    • readContent

      public String readContent()
      Description copied from class: ServiceResponse
      Reads the content as a String. This method is used by ResponseSender to generate the response content to send to the client.
      Specified by:
      readContent in class ServiceResponse<String>
      Returns:
      the content as string
    • setInError

      public void setInError(int code, String message, Throwable t)
      Specified by:
      setInError in class ServiceResponse<String>
      t - can be null