Lines 19-24
Link Here
|
19 |
* David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients |
19 |
* David McKnight (IBM) - [220892][dstore] Backward compatibility: Server and Daemon should support old clients |
20 |
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types |
20 |
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types |
21 |
* David McKnight (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed |
21 |
* David McKnight (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed |
|
|
22 |
* David Dykstal (IBM) [235284] Cancel password change causes problem |
22 |
*******************************************************************************/ |
23 |
*******************************************************************************/ |
23 |
|
24 |
|
24 |
package org.eclipse.dstore.core.client; |
25 |
package org.eclipse.dstore.core.client; |
Lines 121-126
Link Here
|
121 |
public final static String CLIENT_OLDER = "Older DataStore Client."; //$NON-NLS-1$ |
122 |
public final static String CLIENT_OLDER = "Older DataStore Client."; //$NON-NLS-1$ |
122 |
public final static String INCOMPATIBLE_PROTOCOL = "Incompatible Protocol."; //$NON-NLS-1$ |
123 |
public final static String INCOMPATIBLE_PROTOCOL = "Incompatible Protocol."; //$NON-NLS-1$ |
123 |
public final static String CANNOT_CONNECT = "Cannot connect to server."; //$NON-NLS-1$ |
124 |
public final static String CANNOT_CONNECT = "Cannot connect to server."; //$NON-NLS-1$ |
|
|
125 |
|
126 |
// TODO: should probably make this a public constant in 3.1 |
127 |
private final static String INVALID_DAEMON_PORT_NUMBER = "Invalid daemon port number."; //$NON-NLS-1$ |
124 |
|
128 |
|
125 |
/** |
129 |
/** |
126 |
* Creates a new ClientConnection instance |
130 |
* Creates a new ClientConnection instance |
Lines 782-787
Link Here
|
782 |
result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts()); |
786 |
result = new ConnectionStatus(false, e, true, mgr.getUntrustedCerts()); |
783 |
return result; |
787 |
return result; |
784 |
} |
788 |
} |
|
|
789 |
catch (IllegalArgumentException e) { |
790 |
e = new IllegalArgumentException(INVALID_DAEMON_PORT_NUMBER); |
791 |
result = new ConnectionStatus(false, e); |
792 |
return result; |
793 |
} |
785 |
catch (Exception e) |
794 |
catch (Exception e) |
786 |
{ |
795 |
{ |
787 |
if (_launchSocket != null) |
796 |
if (_launchSocket != null) |
Lines 817-822
Link Here
|
817 |
{ |
826 |
{ |
818 |
result = new ConnectionStatus(false, uhe); |
827 |
result = new ConnectionStatus(false, uhe); |
819 |
} |
828 |
} |
|
|
829 |
catch (IllegalArgumentException e) { |
830 |
e = new IllegalArgumentException(INVALID_DAEMON_PORT_NUMBER); |
831 |
result = new ConnectionStatus(false, e); |
832 |
} |
820 |
catch (IOException ioe) |
833 |
catch (IOException ioe) |
821 |
{ |
834 |
{ |
822 |
result = new ConnectionStatus(false, ioe); |
835 |
result = new ConnectionStatus(false, ioe); |