public interface ApiContracts
extends org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Initialisable
Contracts. This class will remain backwards compatible.| Modifier and Type | Method and Description |
|---|---|
default List<Contract> |
contracts() |
default boolean |
contractsLoaded()
Indicates if contracts for the API were successfully loaded from the Disk, Platform, etc.
|
default void |
dispose() |
default void |
initialise() |
Sla |
sla(Client client) |
Sla |
sla(String clientId) |
ApiContracts |
updateContracts(Contract... contracts)
Updates the available
Contracts. |
ApiContracts |
updateContracts(List<Contract> contracts)
Updates the available
Contracts. |
default ApiContracts |
updateSlas(List<Sla> slas)
Updates the available
Slas. |
Client |
validate(String clientId)
|
Client |
validate(String clientId,
String clientSecret)
|
ApiContracts updateContracts(List<Contract> contracts)
Contracts.contracts - current Contracts.default ApiContracts updateSlas(List<Sla> slas)
Slas.slas - current Slas.ApiContracts updateContracts(Contract... contracts)
Contracts.contracts - current Contracts.Sla sla(Client client) throws ForbiddenClientException
ForbiddenClientException - when the client has no SLA definedSla sla(String clientId) throws ForbiddenClientException
ForbiddenClientException - when the client has no SLA definedClient validate(String clientId, String clientSecret) throws ForbiddenClientException
ForbiddenClientException - when the client has no contract defined in the APIClient validate(String clientId) throws ForbiddenClientException
ForbiddenClientException - when the client has no contract defined in the APIdefault boolean contractsLoaded()
default void initialise()
initialise in interface org.mule.runtime.api.lifecycle.Initialisabledefault void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2014–2023 MuleSoft, Inc.. All rights reserved.