Package io.nitric.faas
Class HttpTriggerContext
- java.lang.Object
-
- io.nitric.faas.AbstractTriggerContext
-
- io.nitric.faas.HttpTriggerContext
-
public final class HttpTriggerContext extends AbstractTriggerContext
Provides contextual metadata for a trigger raised by a HTTP request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getHeaders()
String
getMethod()
String
getPath()
Map<String,String>
getQueryParams()
String
toString()
-
Methods inherited from class io.nitric.faas.AbstractTriggerContext
asHttp, asTopic, buildTriggerContext, isHttp, isTopic
-
-
-
-
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 triggerpath
- The path of the HTTP request for the raised triggerheaders
- The headers of the HTTP request for the raised triggerqueryParams
- 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
-
-