Package com.google.api.gax.httpjson
Interface HttpRequestFormatter<MessageFormatT>
- All Known Implementing Classes:
ProtoMessageRequestFormatter
public interface HttpRequestFormatter<MessageFormatT>
Interface for classes that create parts of HTTP requests from a parameterized message.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<PathTemplate>Additional (alternative) path templates for endpoint URL path.getPath(MessageFormatT apiMessage) Path template for endpoint URL path.getQueryParamNames(MessageFormatT apiMessage) Return a map where each entry is the name of a query param mapped to the values of the param.getRequestBody(MessageFormatT apiMessage) Return the serialized inner request body of the given message.
-
Method Details
-
getQueryParamNames
Return a map where each entry is the name of a query param mapped to the values of the param. -
getRequestBody
Return the serialized inner request body of the given message. -
getPath
-
getPathTemplate
PathTemplate getPathTemplate()Path template for endpoint URL path. -
getAdditionalPathTemplates
Additional (alternative) path templates for endpoint URL path.
-