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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<com.google.api.pathtemplate.PathTemplate>getAdditionalPathTemplates()Additional (alternative) path templates for endpoint URL path.java.lang.StringgetPath(MessageFormatT apiMessage)com.google.api.pathtemplate.PathTemplategetPathTemplate()Path template for endpoint URL path.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getQueryParamNames(MessageFormatT apiMessage)Return a map where each entry is the name of a query param mapped to the values of the param.java.lang.StringgetRequestBody(MessageFormatT apiMessage)Return the serialized inner request body of the given message.
-
-
-
Method Detail
-
getQueryParamNames
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getQueryParamNames(MessageFormatT apiMessage)
Return a map where each entry is the name of a query param mapped to the values of the param.
-
getRequestBody
java.lang.String getRequestBody(MessageFormatT apiMessage)
Return the serialized inner request body of the given message.
-
getPath
java.lang.String getPath(MessageFormatT apiMessage)
-
getPathTemplate
com.google.api.pathtemplate.PathTemplate getPathTemplate()
Path template for endpoint URL path.
-
getAdditionalPathTemplates
@BetaApi default java.util.List<com.google.api.pathtemplate.PathTemplate> getAdditionalPathTemplates()
Additional (alternative) path templates for endpoint URL path.
-
-