public void removeParameter(String key) removes the
specified session parameter.
Parameters
- String key
- The key of the session parameter to be removed.
Returns
void
Example
... // Create the repository Session. // SkyVault_CMIS_ATOMPUB_URL = "http://cmis.alfresco.com/cmisatom"; RepositorySession session = new RepositorySession(ALFRESCO_CMIS_ATOMPUB_URL); // Check the Repository Session object has been created but not bind // with the repository so there's no RepositoryInfo Assert.assertNotNull(session); Assert.assertNull(session.getRepositoryInfo()); // Add Extra Information // Because cmis.alfresco.com doesn't respect the pattern of SkyVault // cmis binding url we add as extra parameters session.addParameters(SessionSettings.BINDING_URL, SkyVault_CMIS_ATOMPUB_URL); // Start the authentication and get all informations from the // repository session.authenticate(ALFRESCO_CMIS_USER, SkyVault_CMIS_PASSWORD); // Check information has been collected from repository Assert.assertNotNull(session); Assert.assertNotNull(session.getRepositoryInfo()); // Base Url Assert.assertNotNull(session.getBaseUrl()); Assert.assertEquals(ALFRESCO_CMIS_ATOMPUB_URL, session.getBaseUrl()); ... session.removeParameter(SessionSettings.BINDING_URL);