Renamed InvalidTransportException -> InvalidPropertiesException.

This commit is contained in:
akwizgran
2011-10-06 09:18:13 +01:00
parent 45fd4c9060
commit b54668c50b
6 changed files with 19 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ import java.util.concurrent.Executor;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.transport.InvalidConfigException;
import net.sf.briar.api.transport.InvalidTransportException;
import net.sf.briar.api.transport.InvalidPropertiesException;
import net.sf.briar.api.transport.TransportConstants;
import net.sf.briar.api.transport.batch.BatchTransportCallback;
import net.sf.briar.api.transport.batch.BatchTransportPlugin;
@@ -41,7 +41,7 @@ abstract class FilePlugin implements BatchTransportPlugin {
public synchronized void start(Map<String, String> localProperties,
Map<ContactId, Map<String, String>> remoteProperties,
Map<String, String> config, BatchTransportCallback callback)
throws InvalidTransportException, InvalidConfigException, IOException {
throws InvalidPropertiesException, InvalidConfigException, IOException {
if(started) throw new IllegalStateException();
started = true;
this.localProperties = localProperties;
@@ -56,14 +56,14 @@ abstract class FilePlugin implements BatchTransportPlugin {
}
public synchronized void setLocalProperties(Map<String, String> properties)
throws InvalidTransportException {
throws InvalidPropertiesException {
if(!started) throw new IllegalStateException();
localProperties = properties;
}
public synchronized void setRemoteProperties(ContactId c,
Map<String, String> properties)
throws InvalidTransportException {
throws InvalidPropertiesException {
if(!started) throw new IllegalStateException();
remoteProperties.put(c, properties);
}

View File

@@ -9,7 +9,7 @@ import java.util.concurrent.Executor;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.TransportId;
import net.sf.briar.api.transport.InvalidConfigException;
import net.sf.briar.api.transport.InvalidTransportException;
import net.sf.briar.api.transport.InvalidPropertiesException;
import net.sf.briar.api.transport.batch.BatchTransportCallback;
class RemovableDrivePlugin extends FilePlugin
@@ -37,7 +37,7 @@ implements RemovableDriveMonitor.Callback {
public void start(Map<String, String> localProperties,
Map<ContactId, Map<String, String>> remoteProperties,
Map<String, String> config, BatchTransportCallback callback)
throws InvalidTransportException, InvalidConfigException, IOException {
throws InvalidPropertiesException, InvalidConfigException, IOException {
super.start(localProperties, remoteProperties, config, callback);
monitor.start(this);
}

View File

@@ -8,7 +8,7 @@ import java.util.concurrent.Executor;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.transport.InvalidConfigException;
import net.sf.briar.api.transport.InvalidTransportException;
import net.sf.briar.api.transport.InvalidPropertiesException;
import net.sf.briar.api.transport.stream.StreamTransportCallback;
import net.sf.briar.api.transport.stream.StreamTransportConnection;
import net.sf.briar.api.transport.stream.StreamTransportPlugin;
@@ -36,7 +36,7 @@ abstract class SocketPlugin implements StreamTransportPlugin {
public synchronized void start(Map<String, String> localProperties,
Map<ContactId, Map<String, String>> remoteProperties,
Map<String, String> config, StreamTransportCallback callback)
throws InvalidTransportException, InvalidConfigException {
throws InvalidPropertiesException, InvalidConfigException {
if(started) throw new IllegalStateException();
started = true;
this.localProperties = localProperties;
@@ -67,14 +67,14 @@ abstract class SocketPlugin implements StreamTransportPlugin {
}
public synchronized void setLocalProperties(Map<String, String> properties)
throws InvalidTransportException {
throws InvalidPropertiesException {
if(!started) throw new IllegalStateException();
localProperties = properties;
}
public synchronized void setRemoteProperties(ContactId c,
Map<String, String> properties)
throws InvalidTransportException {
throws InvalidPropertiesException {
if(!started) throw new IllegalStateException();
remoteProperties.put(c, properties);
}