Class BrokerApiVersion
java.lang.Object
org.springframework.cloud.servicebroker.model.BrokerApiVersion
Object for configuring the version of the API supported by the service broker.
- Author:
- Scott Frederick, Roy Clarkson
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpecify that service broker API validation should be disabled.BrokerApiVersion
(String apiVersion) Specify the service broker API version supported by the service broker.BrokerApiVersion
(String apiVersionHeader, String apiVersion) Specify the name of the service broker API version header and the API version supported by the service broker. -
Method Summary
Modifier and TypeMethodDescriptionGet the service broker API version supported by the service broker.Get the name of the service broker API version header.
-
Field Details
-
DEFAULT_API_VERSION_HEADER
API Version header.- See Also:
-
API_VERSION_ANY
API Version value representing any version.- See Also:
-
API_VERSION_CURRENT
Current API Version supported by this library.- See Also:
-
-
Constructor Details
-
BrokerApiVersion
Specify the name of the service broker API version header and the API version supported by the service broker.- Parameters:
apiVersionHeader
- the name of the HTTP header field expected to contain the service broker API version of the service broker clientapiVersion
- the version of the service broker API supported by the broker; a value of null or API_VERSION_ANY will disable API version validation
-
BrokerApiVersion
Specify the service broker API version supported by the service broker.- Parameters:
apiVersion
- the version of the broker API supported by the broker; a value of null or API_VERSION_ANY will disable API version validation
-
BrokerApiVersion
public BrokerApiVersion()Specify that service broker API validation should be disabled.
-
-
Method Details
-
getApiVersion
Get the service broker API version supported by the service broker.- Returns:
- the service broker API version supported by the service broker
-
getBrokerApiVersionHeader
Get the name of the service broker API version header.- Returns:
- the name of the service broker API version header
-