R
- the type of the request bodyP
- the type of the response bodyM
- the type of the message parameterspublic class UrlPrefixDecorator<R extends RequestBody,P extends ResponseBody,M extends MessageParameters> extends Object implements SqlGatewayMessageHeaders<R,P,M>
Constructor and Description |
---|
UrlPrefixDecorator(MessageHeaders<R,P,M> messageHeaders,
String urlPrefix)
Constructs an instance of UrlPrefixDecorator.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description for this header.
|
HttpMethodWrapper |
getHttpMethod()
Returns the
HttpMethodWrapper to be used for the request. |
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.
|
String |
getTargetRestEndpointURL()
Returns the generalized endpoint url that this request should be sent to, for example
/job/:jobid . |
M |
getUnresolvedMessageParameters()
Returns a new
MessageParameters object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedAPIVersions
getCustomHeaders, getResponseTypeParameters, operationId
acceptsFileUploads
public UrlPrefixDecorator(MessageHeaders<R,P,M> messageHeaders, String urlPrefix)
messageHeaders
- the original SqlGatewayMessageHeaders to be decoratedurlPrefix
- the URL prefix to be added to the target REST endpoint URLpublic HttpMethodWrapper getHttpMethod()
RestHandlerSpecification
HttpMethodWrapper
to be used for the request.getHttpMethod
in interface RestHandlerSpecification
public String getTargetRestEndpointURL()
RestHandlerSpecification
/job/:jobid
.getTargetRestEndpointURL
in interface RestHandlerSpecification
public Class<P> getResponseClass()
MessageHeaders
getResponseClass
in interface MessageHeaders<R extends RequestBody,P extends ResponseBody,M extends MessageParameters>
public org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus getResponseStatusCode()
MessageHeaders
getResponseStatusCode
in interface MessageHeaders<R extends RequestBody,P extends ResponseBody,M extends MessageParameters>
public String getDescription()
MessageHeaders
getDescription
in interface MessageHeaders<R extends RequestBody,P extends ResponseBody,M extends MessageParameters>
public Class<R> getRequestClass()
UntypedResponseMessageHeaders
getRequestClass
in interface UntypedResponseMessageHeaders<R extends RequestBody,M extends MessageParameters>
public M getUnresolvedMessageParameters()
UntypedResponseMessageHeaders
MessageParameters
object.getUnresolvedMessageParameters
in interface UntypedResponseMessageHeaders<R extends RequestBody,M extends MessageParameters>
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.