Interface HttpRequestFormatter<MessageFormatT> (2.7.1)

public interface HttpRequestFormatter<MessageFormatT>

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

Type Parameter

NameDescription
MessageFormatT

Methods

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