mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Removed unused exceptions. Also disabled output for ant tests.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user