Class HttpResponseContext

    • Constructor Detail

      • HttpResponseContext

        public HttpResponseContext()
    • Method Detail

      • getStatus

        public int getStatus()
        Returns:
        The HTTP Response status for this context
      • getHeaders

        public Map<String,​String> getHeaders()
        Returns:
        The HTTP headers for this context
      • setStatus

        public HttpResponseContext setStatus​(int status)
        Parameters:
        status - - The HTTP status to set for this context
        Returns:
        The instance of the context for chaining
      • addHeader

        public HttpResponseContext addHeader​(String key,
                                             String value)
        Parameters:
        key - The key of the header to add
        value - The value of the header to add
        Returns:
        The instance of the context for chaining
      • setHeaders

        public HttpResponseContext setHeaders​(Map<String,​String> headers)
        Parameters:
        headers - The header map to set
        Returns:
        The instance of the context for chaining
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        String representation of HttpResponseContext