R
- request message typeP
- response message typeM
- message parameters typepublic interface MessageHeaders<R extends RequestBody,P extends ResponseBody,M extends MessageParameters> extends RestHandlerSpecification
RequestBody
s to ResponseBody
s types and contains meta-data required for their http headers.
Implementations must be state-less.
Modifier and Type | Method and Description |
---|---|
Class<R> |
getRequestClass()
Returns the class of the request message.
|
Class<P> |
getResponseClass()
Returns the class of the response message.
|
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus |
getResponseStatusCode()
Returns the http status code for the response.
|
M |
getUnresolvedMessageParameters()
Returns a new
MessageParameters object. |
getHttpMethod, getTargetRestEndpointURL
Class<R> getRequestClass()
Class<P> getResponseClass()
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus getResponseStatusCode()
M getUnresolvedMessageParameters()
MessageParameters
object.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.