public class RestApiProxy extends ApplicationProxy
Each REST API deployed to an execution group can be represented by an RestApiProxy.
In order to use RestApiProxy objects, applications must first obtain handles to them. Here is an example of how to do this:
BrokerProxy b = BrokerProxy.getInstance( new IntegrationNodeConnectionParameters("localhost", 4414)); ExecutionGroupProxy e = b.getExecutionGroupByName("default"); RestApiProxy restapi = e.getRestApiByName("restapi1");
com.ibm.broker.config.proxy.RestApiProxy extends
com.ibm.broker.config.proxy.ApplicationProxy implements
com.ibm.broker.config.proxy.DeployedObjectGroupProxy implements
com.ibm.broker.config.proxy.DeployedObject
|
|
Responsibilities | Acts as a container of deployed message flows. Provides the ability to deploy information to the REST API represented by each instance. |
Internal Collaborators | com.ibm.broker.config.proxy.MessageFlowProxy |
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ xyzab 2015-01-18 SS1 v10 Release
BARNAME_KEYWORD, USAGE_KEYWORD, VERSION_KEYWORD
Modifier and Type | Method and Description |
---|---|
Api |
getApi()
Get the details of the API implemented by this REST API.
|
java.net.URL |
getBaseURL()
Returns the URL of the base of this REST API.
|
ConfigurationObjectType |
getConfigurationObjectType()
Returns the ConfigurationObjectType associated
with this AdministeredObject type.
|
java.net.URL |
getDefinitionsURL()
Returns the URL of the REST API definitions for this REST API.
|
java.lang.String |
getFileExtension()
Returns the file extension relevant to REST APIs, not
preceded by a '.' character.
|
java.net.URL |
getLocalBaseURL()
Returns the local URL (the host name is set to localhost) of the base of this REST API.
|
java.net.URL |
getLocalDefinitionsURL()
Returns the local URL (the host name is set to localhost) of the REST API definitions for this REST API.
|
Operation |
getOperation(java.lang.String operationName)
Get an operation from the REST API definitions using the name of that operation.
|
java.util.List<Operation> |
getOperations()
Get a list of all the operations that are defined in the REST API definitions.
|
boolean |
isOperationImplemented(java.lang.String operationName)
Determine whether or not an operation has been implemented.
|
static java.util.Properties |
withName(java.lang.String name)
Returns a new Properties object that has the name attribute set
to the supplied String, and the type attribute to be the name of
the subclass of AdministeredObject being used.
|
static java.util.Properties |
withUUID(java.lang.String uuid)
Returns a new Properties object that has the UUID attribute set
to the supplied String, and the type attribute to be the name of
the subclass of AdministeredObject being used.
|
clearRecordedTestData, deleteDeployedObjects, deleteDeployedObjectsByName, deploy, deploy, deploy, deploy, fullNameMatches, getBARFileName, getConfigurationObjectTypeOfParent, getDeployProperties, getDeployTime, getErrorHandlerNames, getExecutionGroup, getFullName, getInterfaceFiles, getInterfaceFilesAsZip, getKeywords, getKeywordValue, getLibraries, getLibrary, getLibraryByName, getMessageFlowByName, getModifyTime, getRuntimeProperty, getRuntimePropertyNames, getServiceDescriptor, getServiceName, getServiceOperation, getServiceOperations, getServiceQueryURL, getServiceURL, getSharedLibraryDependencies, getStartMode, getStaticLibraries, getStaticLibrary, getStaticLibraryByName, getTestRecordMode, getVersion, isJavaIsolated, isRunEnabled, isRunning, isServiceInternalComponent, setAllMessageFlowsRuntimeProperties, setAllMessageFlowsRuntimeProperty, setName, setRuntimeProperty, setStartMode, setTestRecordMode, start, stop, stop
deploy, getDeployedObjectByName, getDeployedObjectFromSubcomponentString, getDeployedObjects, getDeployedObjects, getDeployedObjectsCount, getDeployedPolicySetBindingsNames, getDeployedPolicySetNames, getMessageFlow, getMessageFlowByName, getMessageFlowDependencies, getMessageFlows, getMessageSets, getNodeTypes, getQueues, getSubFlow, getSubFlowByName, getSubFlows, setUserTrace, startMessageFlows, stopMessageFlows, stopMessageFlows, stopMessageFlows
deregisterListener, deregisterListener, elements, equals, getAdvancedProperties, getBasicProperties, getLastBIPMessages, getLastCompletionCode, getLastUpdateUser, getLongDescription, getManagedSubcomponent, getManagedSubcomponentFromStringRepresentation, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponents, getManagedSubcomponentsAsStrings, getManagedSubcomponentsAsStrings, getName, getNumberOfSubcomponents, getParent, getProperties, getProperty, getProperty, getProperty, getProperty, getRepositoryTimestamp, getShortDescription, getTimeOfLastCompletionCode, getTimeOfLastUpdate, getType, getUUID, hasBeenPopulatedByBroker, hasBeenPopulatedByBroker, hasBeenRestrictedByBroker, hasBeenRestrictedByBroker, hasBeenRestrictedByConfigManager, hasBeenRestrictedByConfigManager, hasBeenUpdatedByConfigManager, hasBeenUpdatedByConfigManager, isAwaitingSubmissionForCreation, isAwaitingSubmissionForDeletion, isDeployed, isShared, refresh, registerListener, registerListener, registerListener, setLongDescription, setProperties, setShortDescription, toString, toVerboseString, unsubscribeFromConfigurationManagerUpdates
getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static java.util.Properties withUUID(java.lang.String uuid)
public static java.util.Properties withName(java.lang.String name)
public ConfigurationObjectType getConfigurationObjectType()
getConfigurationObjectType
in class ApplicationProxy
public java.lang.String getFileExtension()
getFileExtension
in interface DeployableObject
getFileExtension
in class ApplicationProxy
DeployableObject.getFileExtension()
public Api getApi() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the API details could not be retrieved for this REST API, or if those
API details could not be processed.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public java.net.URL getLocalBaseURL() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the local URL of the base of this REST API could not be
retrieved, or is not a valid URL.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public java.net.URL getBaseURL() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the URL of the base of this REST API could not be
retrieved, or is not a valid URL.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public java.net.URL getLocalDefinitionsURL() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the local URL of the REST API definitions for this REST API could not be
retrieved, or is not a valid URL.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public java.net.URL getDefinitionsURL() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the URL of the base of this REST API could not be
retrieved, or is not a valid URL.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public java.util.List<Operation> getOperations() throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
ConfigManagerProxyLoggedException
- if the API details could not be retrieved for this REST API, or if those
API details could not be processed.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public Operation getOperation(java.lang.String operationName) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
operationName
- the name of the operation.ConfigManagerProxyLoggedException
- if the API details could not be retrieved for this REST API, or if those
API details could not be processed.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.public boolean isOperationImplemented(java.lang.String operationName) throws ConfigManagerProxyLoggedException, ConfigManagerProxyPropertyNotInitializedException
operationName
- the name of the operation to check.ConfigManagerProxyLoggedException
- if the API details could not be retrieved for this REST API, or if those
API details could not be processed.ConfigManagerProxyPropertyNotInitializedException
- if the value of the field could not be determined because
the value has not yet been supplied to from the broker.