/** * Generates an in-memory key for an application, used to index the app for later quick * retrieval. * @param app an application * @return an application key */ private String getApplicationKey(Application app) { return app.getOrganizationId() + "|" + app.getApplicationId() + "|" + app.getVersion(); //$NON-NLS-1$ //$NON-NLS-2$ } }
/** * @see io.apiman.manager.api.gateway.IGatewayLink#unregisterApplication(io.apiman.gateway.engine.beans.Application) */ @Override public void unregisterApplication(Application application) throws RegistrationException { if (!isGatewayUp()) { throw new RegistrationException(Messages.i18n.format("RestGatewayLink.GatewayNotRunning")); //$NON-NLS-1$ } getClient().unregister(application.getOrganizationId(), application.getApplicationId(), application.getVersion()); }