Exemple #1
0
 /**
  * Establish a connection to the YOMP server and returns a new instance of {@link YOMPClient}
  *
  * @param serverUrl YOMP Server URL.
  * @param password Password used to connect to YOMP server. See YOMP Web UI to retrieve password
  * @return {@link YOMPClient} object used to interact with the server.
  */
 public YOMPClient connectToYOMP(final String serverUrl, final String password)
     throws MalformedURLException {
   if (_YOMPClientFactory != null) {
     return _YOMPClientFactory.createClient(serverUrl, password);
   }
   return null;
 }
Exemple #2
0
 /**
  * Establish a connection to the YOMP server and returns a new instance of {@link YOMPClient}
  * using the the default authentication settings.
  *
  * @return {@link YOMPClient} object used to interact with the server.
  */
 public YOMPClient connectToServer() throws MalformedURLException {
   if (_YOMPClientFactory != null) {
     return _YOMPClientFactory.createClient(null, null);
   }
   return null;
 }