Removed unused exceptions. Also disabled output for ant tests.

This commit is contained in:
akwizgran
2011-10-08 12:27:13 +01:00
parent 4b1ffbe85b
commit a3a5ebc14f
11 changed files with 22 additions and 58 deletions

View File

@@ -1,10 +0,0 @@
package net.sf.briar.api.transport;
/**
* Thrown by a transport plugin if the specified configuration properties are
* invalid.
*/
public class InvalidConfigException extends Exception {
private static final long serialVersionUID = 9123332784670286454L;
}

View File

@@ -1,10 +0,0 @@
package net.sf.briar.api.transport;
/**
* Thrown by a transport plugin if the specified transport properties are
* invalid.
*/
public class InvalidPropertiesException extends Exception {
private static final long serialVersionUID = -6516979794153838108L;
}

View File

@@ -18,15 +18,13 @@ public interface TransportPlugin {
void stop() throws IOException;
/** Updates the plugin's local transport properties. */
void setLocalProperties(Map<String, String> properties)
throws InvalidPropertiesException;
void setLocalProperties(Map<String, String> properties);
/** Updates the plugin's transport properties for the given contact. */
void setRemoteProperties(ContactId c, Map<String, String> properties)
throws InvalidPropertiesException;
void setRemoteProperties(ContactId c, Map<String, String> properties);
/** Updates the plugin's configuration properties. */
void setConfig(Map<String, String> config) throws InvalidConfigException;
void setConfig(Map<String, String> config);
/**
* Returns true if the plugin's poll() method should be called

View File

@@ -4,8 +4,6 @@ import java.io.IOException;
import java.util.Map;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.transport.InvalidConfigException;
import net.sf.briar.api.transport.InvalidPropertiesException;
import net.sf.briar.api.transport.TransportPlugin;
/**
@@ -21,7 +19,7 @@ public interface BatchTransportPlugin extends TransportPlugin {
void start(Map<String, String> localProperties,
Map<ContactId, Map<String, String>> remoteProperties,
Map<String, String> config, BatchTransportCallback c)
throws InvalidPropertiesException, InvalidConfigException, IOException;
throws IOException;
/**
* Attempts to create and return a BatchTransportReader for the given

View File

@@ -4,8 +4,6 @@ import java.io.IOException;
import java.util.Map;
import net.sf.briar.api.ContactId;
import net.sf.briar.api.transport.InvalidConfigException;
import net.sf.briar.api.transport.InvalidPropertiesException;
import net.sf.briar.api.transport.TransportPlugin;
/**
@@ -21,7 +19,7 @@ public interface StreamTransportPlugin extends TransportPlugin {
void start(Map<String, String> localProperties,
Map<ContactId, Map<String, String>> remoteProperties,
Map<String, String> config, StreamTransportCallback c)
throws InvalidPropertiesException, InvalidConfigException, IOException;
throws IOException;
/**
* Attempts to create and return a StreamTransportConnection to the given