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 Detail

      • getQueryParamNames

        Map<String,​List<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

        String getRequestBody​(MessageFormatT apiMessage)
        Return the serialized inner request body of the given message.
      • getPathTemplate

        com.google.api.pathtemplate.PathTemplate getPathTemplate()
        Path template for endpoint URL path.
      • getAdditionalPathTemplates

        @BetaApi
        default List<com.google.api.pathtemplate.PathTemplate> getAdditionalPathTemplates()
        Additional (alternative) path templates for endpoint URL path.