public class BrokerApiVersion
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_VERSION_ANY |
static java.lang.String |
API_VERSION_CURRENT |
static java.lang.String |
DEFAULT_API_VERSION_HEADER |
Constructor and Description |
---|
BrokerApiVersion()
Specify that service broker API validation should be disabled.
|
BrokerApiVersion(java.lang.String apiVersion)
Specify the service broker API version supported by the service broker.
|
BrokerApiVersion(java.lang.String apiVersionHeader,
java.lang.String apiVersion)
Specify the name of the service broker API version header and the API version supported by the service broker.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiVersion()
Get the service broker API version supported by the service broker.
|
java.lang.String |
getBrokerApiVersionHeader()
Get the name of the service broker API version header.
|
public static final java.lang.String DEFAULT_API_VERSION_HEADER
public static final java.lang.String API_VERSION_ANY
public static final java.lang.String API_VERSION_CURRENT
public BrokerApiVersion(java.lang.String apiVersionHeader, java.lang.String apiVersion)
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 validationpublic BrokerApiVersion(java.lang.String apiVersion)
apiVersion
- the version of the broker API supported by the broker; a value of null
or API_VERSION_ANY will disable API version validationpublic BrokerApiVersion()
public java.lang.String getApiVersion()
public java.lang.String getBrokerApiVersionHeader()