Пример #1
0
 /**
  * Sets the "uri" element on the underlying model.
  *
  * @param uri The Camel Component URI
  * @return {@link CamelBindingModel} to support method chaining.
  */
 public V1CamelBindingModel setConfigURI(URI uri) {
   if (_configURI == null) {
     setModelAttribute(CONFIG_URI, uri.toString());
     _configURI = ConfigURIFactory.newConfigURI(uri.toString(), getSocketAddr());
   }
   return this;
 }
Пример #2
0
 /**
  * Gets the binding uri attribute from the underlying model.
  *
  * @return URI The binding uri attribute.
  */
 public ConfigURI getConfigURI() {
   if (_configURI == null) {
     _configURI = ConfigURIFactory.newConfigURI(getModelAttribute(CONFIG_URI), getSocketAddr());
   }
   return _configURI;
 }