Class HttpTriggerContext


  • public final class HttpTriggerContext
    extends AbstractTriggerContext

    Provides contextual metadata for a trigger raised by a HTTP request.

    • Constructor Detail

      • HttpTriggerContext

        protected HttpTriggerContext​(String method,
                                     String path,
                                     Map<String,​String> headers,
                                     Map<String,​String> queryParams)
        Create a new HttpRequestTriggerContext.
        Parameters:
        method - The method of the HTTP request for the raised trigger
        path - The path of the HTTP request for the raised trigger
        headers - The headers of the HTTP request for the raised trigger
        queryParams - The query parameters of the HTTP request for the raised trigger
    • Method Detail

      • getMethod

        public String getMethod()
        Returns:
        The method of the HTTP Request that raised this trigger
      • getPath

        public String getPath()
        Returns:
        The path of the HTTP Request that raised this trigger
      • getHeaders

        public Map<String,​String> getHeaders()
        Returns:
        The headers of the HTTP Request that raised this trigger
      • getQueryParams

        public Map<String,​String> getQueryParams()
        Returns:
        The query parameters of the HTTP Request that raised this trigger
      • toString

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