public class BrokerApiVersion extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_VERSION_ANY |
static String |
API_VERSION_CURRENT |
static String |
DEFAULT_API_VERSION_HEADER |
| Constructor and Description |
|---|
BrokerApiVersion()
Specify 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiVersion()
Get the service broker API version supported by the service broker.
|
String |
getBrokerApiVersionHeader()
Get the name of the service broker API version header.
|
public static final String DEFAULT_API_VERSION_HEADER
public static final String API_VERSION_ANY
public static final String API_VERSION_CURRENT
public BrokerApiVersion(String apiVersionHeader, 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(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 String getApiVersion()
public String getBrokerApiVersionHeader()