Package 

Interface ResponsePort

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract OutputStream outputStream() Provides a OutputStream instance for the response.
      abstract Integer status() Provides the status code of the response.
      abstract Unit status(Integer value) Sets the status code of the response.
      abstract Object body() Provides the body of the response.
      abstract Unit body(Object value) Sets the body of the response.
      abstract String contentType() Provides the content type of the response.
      abstract Unit contentType(String value) Sets the content type of the response.
      abstract Unit addCookie(Cookie cookie) Sends a response by adding the given cookie.
      abstract Unit removeCookie(String name) Sends a response by removing the cookie with specified name.
      abstract Unit redirect(String url) Sends a redirect response to the client using the specified redirect URL.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • status

         abstract Integer status()

        Provides the status code of the response.

      • status

         abstract Unit status(Integer value)

        Sets the status code of the response.

        Parameters:
        value - Status code.
      • body

         abstract Object body()

        Provides the body of the response.

      • body

         abstract Unit body(Object value)

        Sets the body of the response.

        Parameters:
        value - Body content.
      • contentType

         abstract String contentType()

        Provides the content type of the response.

      • contentType

         abstract Unit contentType(String value)

        Sets the content type of the response.

        Parameters:
        value - Content type info.
      • addCookie

         abstract Unit addCookie(Cookie cookie)

        Sends a response by adding the given cookie.

        Parameters:
        cookie - Cookie to be added.
      • removeCookie

         abstract Unit removeCookie(String name)

        Sends a response by removing the cookie with specified name.

        Parameters:
        name - Cookie to be deleted.
      • redirect

         abstract Unit redirect(String url)

        Sends a redirect response to the client using the specified redirect URL.

        Parameters:
        url - Redirect URL.