You are here

getBaseUrl

public String getBaseUrl() returns a string representing the base URL of the session.

Parameters

None

Returns

Returns a string representing the base URL of the session in the format http://hostname:port/SkyVault.

Example



    try {

      RepositorySession session = RepositorySession.connect(url, username, password);

      if (session) {
 
			   String baseUrl = session.getBaseUrl()); 		
				 ...
					
		  } else {

		     Log.d(TAG, "No Session available!");

		  }
		} catch (AlfrescoSessionException e) {
				Log.e(TAG, "Failed to connect: " + e.toString());
		}