Package io.dapr.client.domain
Class HttpExtension
java.lang.Object
io.dapr.client.domain.HttpExtension
HTTP Extension class.
This class is only needed if the app you are calling is listening on HTTP.
It contains properties that represent data that may be populated for an HTTP receiver.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.CONNECT
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.DELETE
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.GET
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.HEAD
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object forDaprHttp.HttpMethods.NONE
with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.OPTIONS
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.POST
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.PUT
Verb with empty queryString.static final HttpExtension
Convenience HttpExtension object for theDaprHttp.HttpMethods.TRACE
Verb with empty queryString. -
Constructor Summary
ConstructorDescriptionHttpExtension
(DaprHttp.HttpMethods method) Construct a HttpExtension object.HttpExtension
(DaprHttp.HttpMethods method, Map<String, List<String>> queryParams, Map<String, String> headers) Construct a HttpExtension object. -
Method Summary
Modifier and TypeMethodDescriptionEncodes the query string for the HTTP request.
-
Field Details
-
NONE
Convenience HttpExtension object forDaprHttp.HttpMethods.NONE
with empty queryString. -
GET
Convenience HttpExtension object for theDaprHttp.HttpMethods.GET
Verb with empty queryString. -
PUT
Convenience HttpExtension object for theDaprHttp.HttpMethods.PUT
Verb with empty queryString. -
POST
Convenience HttpExtension object for theDaprHttp.HttpMethods.POST
Verb with empty queryString. -
DELETE
Convenience HttpExtension object for theDaprHttp.HttpMethods.DELETE
Verb with empty queryString. -
HEAD
Convenience HttpExtension object for theDaprHttp.HttpMethods.HEAD
Verb with empty queryString. -
CONNECT
Convenience HttpExtension object for theDaprHttp.HttpMethods.CONNECT
Verb with empty queryString. -
OPTIONS
Convenience HttpExtension object for theDaprHttp.HttpMethods.OPTIONS
Verb with empty queryString. -
TRACE
Convenience HttpExtension object for theDaprHttp.HttpMethods.TRACE
Verb with empty queryString.
-
-
Constructor Details
-
HttpExtension
public HttpExtension(DaprHttp.HttpMethods method, Map<String, List<String>> queryParams, Map<String, String> headers) Construct a HttpExtension object.- Parameters:
method
- Required value denoting the HttpMethod.queryParams
- map for the query parameters the HTTP call.headers
- map to set HTTP headers.- Throws:
IllegalArgumentException
- on null method or queryString.- See Also:
-
HttpExtension
Construct a HttpExtension object.- Parameters:
method
- Required value denoting the HttpMethod.- Throws:
IllegalArgumentException
- on null method or queryString.- See Also:
-
-
Method Details
-
getMethod
-
getQueryParams
-
getHeaders
-
encodeQueryString
Encodes the query string for the HTTP request.- Returns:
- Encoded HTTP query string.
-