Class HttpRequestResult

    • Constructor Detail

      • HttpRequestResult

        public HttpRequestResult()
        Default constructor.
      • HttpRequestResult

        public HttpRequestResult​(int statusCode,
                                 String statusMessage,
                                 String body)
        Initializes the container with the status code and body.
        Parameters:
        statusCode - the status code
        statusMessage - the status message
        body - the body (HTML)
      • HttpRequestResult

        public HttpRequestResult​(int statusCode,
                                 String statusMessage,
                                 String body,
                                 Map<String,​String> cookies)
        Initializes the container with the status code, body and cookies.
        Parameters:
        statusCode - the status code
        statusMessage - the status message
        body - the body (HTML)
        cookies - the cookies, can be null
    • Method Detail

      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface Container
        Specified by:
        isValid in class AbstractContainer
        Returns:
        true if all the necessary values are available