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 MessageHeaders<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 |
---|---|
MessageHeaders<R,P,M> |
getDecorated() |
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.
|
Collection<Class<?>> |
getResponseTypeParameters()
Returns the collection of type parameters for the response type.
|
Collection<? extends RestAPIVersion<?>> |
getSupportedAPIVersions()
Returns the supported API versions that this request supports.
|
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
getCustomHeaders, 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>
public Collection<? extends RestAPIVersion<?>> getSupportedAPIVersions()
RestHandlerSpecification
getSupportedAPIVersions
in interface RestHandlerSpecification
public Collection<Class<?>> getResponseTypeParameters()
MessageHeaders
getResponseTypeParameters
in interface MessageHeaders<R extends RequestBody,P extends ResponseBody,M extends MessageParameters>
public MessageHeaders<R,P,M> getDecorated()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.