@BetaApi public class ApiMessageHttpRequestFormatter extends Object implements HttpRequestFormatter<ApiMessage>
| Constructor and Description |
|---|
ApiMessageHttpRequestFormatter() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getPathParams(ApiMessage apiMessage,
Set<String> paramNames)
Return a map where each entry is the name of a path param mapped to the value of the param.
|
Map<String,List<String>> |
getQueryParams(ApiMessage apiMessage,
Set<String> paramNames)
Return a map where each entry is the name of a query param mapped to the values of the param.
|
void |
writeRequestBody(ApiMessage apiMessage,
com.google.gson.Gson marshaller,
Appendable writer)
Write out the inner request body of the given message.
|
public Map<String,List<String>> getQueryParams(ApiMessage apiMessage, Set<String> paramNames)
HttpRequestFormattergetQueryParams in interface HttpRequestFormatter<ApiMessage>public Map<String,String> getPathParams(ApiMessage apiMessage, Set<String> paramNames)
HttpRequestFormattergetPathParams in interface HttpRequestFormatter<ApiMessage>public void writeRequestBody(ApiMessage apiMessage, com.google.gson.Gson marshaller, Appendable writer)
HttpRequestFormatterwriteRequestBody in interface HttpRequestFormatter<ApiMessage>