Interface HttpRequest


  • public interface HttpRequest
    A basic http request abstraction. Http modules needs to implement this interface to integrate with the server package's rest handling.
    • Method Detail

      • method

        RestRequest.Method method()
        Returns the HTTP method used in the HTTP request.
        Returns:
        the RestRequest.Method used in the REST request
        Throws:
        java.lang.IllegalArgumentException - if the HTTP method is invalid
      • uri

        java.lang.String uri()
        The uri of the rest request, with the query string.
      • getHeaders

        java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Get all of the headers and values associated with the headers. Modifications of this map are not supported.
      • strictCookies

        java.util.List<java.lang.String> strictCookies()
      • removeHeader

        HttpRequest removeHeader​(java.lang.String header)