Interface HttpRequestFormatter<MessageFormatT> (2.19.1)

public interface HttpRequestFormatter<MessageFormatT>

Interface for classes that create parts of HTTP requests from a parameterized message.

Type Parameter

NameDescription
MessageFormatT

Methods

getAdditionalPathTemplates()

public default List<PathTemplate> getAdditionalPathTemplates()

Additional (alternative) path templates for endpoint URL path.

Returns
TypeDescription
List<com.google.api.pathtemplate.PathTemplate>

getPath(MessageFormatT apiMessage)

public abstract String getPath(MessageFormatT apiMessage)
Parameter
NameDescription
apiMessageMessageFormatT
Returns
TypeDescription
String

getPathTemplate()

public abstract PathTemplate getPathTemplate()

Path template for endpoint URL path.

Returns
TypeDescription
com.google.api.pathtemplate.PathTemplate

getQueryParamNames(MessageFormatT apiMessage)

public abstract 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.

Parameter
NameDescription
apiMessageMessageFormatT
Returns
TypeDescription
Map<String,List<String>>

getRequestBody(MessageFormatT apiMessage)

public abstract String getRequestBody(MessageFormatT apiMessage)

Return the serialized inner request body of the given message.

Parameter
NameDescription
apiMessageMessageFormatT
Returns
TypeDescription
String