mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Renamed InvalidTransportException -> InvalidPropertiesException.
This commit is contained in:
@@ -4,7 +4,7 @@ package net.sf.briar.api.transport;
|
||||
* Thrown by a transport plugin if the specified transport properties are
|
||||
* invalid.
|
||||
*/
|
||||
public class InvalidTransportException extends Exception {
|
||||
public class InvalidPropertiesException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -6516979794153838108L;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import java.util.Map;
|
||||
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;
|
||||
|
||||
/**
|
||||
* An interface for transport plugins that do not support bidirectional,
|
||||
@@ -24,7 +24,7 @@ public interface BatchTransportPlugin {
|
||||
void start(Map<String, String> localProperties,
|
||||
Map<ContactId, Map<String, String>> remoteProperties,
|
||||
Map<String, String> config, BatchTransportCallback c)
|
||||
throws InvalidTransportException, InvalidConfigException, IOException;
|
||||
throws InvalidPropertiesException, InvalidConfigException, IOException;
|
||||
|
||||
/**
|
||||
* Stops the plugin. No further connections will be passed to the callback
|
||||
@@ -34,11 +34,11 @@ public interface BatchTransportPlugin {
|
||||
|
||||
/** Updates the plugin's local transport properties. */
|
||||
void setLocalProperties(Map<String, String> properties)
|
||||
throws InvalidTransportException;
|
||||
throws InvalidPropertiesException;
|
||||
|
||||
/** Updates the plugin's transport properties for the given contact. */
|
||||
void setRemoteProperties(ContactId c, Map<String, String> properties)
|
||||
throws InvalidTransportException;
|
||||
throws InvalidPropertiesException;
|
||||
|
||||
/** Updates the plugin's configuration properties. */
|
||||
void setConfig(Map<String, String> config) throws InvalidConfigException;
|
||||
|
||||
@@ -5,7 +5,7 @@ import java.util.Map;
|
||||
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;
|
||||
|
||||
/**
|
||||
* An interface for transport plugins that support bidirectional, reliable,
|
||||
@@ -23,7 +23,7 @@ public interface StreamTransportPlugin {
|
||||
void start(Map<String, String> localProperties,
|
||||
Map<ContactId, Map<String, String>> remoteProperties,
|
||||
Map<String, String> config, StreamTransportCallback c)
|
||||
throws InvalidTransportException, InvalidConfigException;
|
||||
throws InvalidPropertiesException, InvalidConfigException;
|
||||
|
||||
/**
|
||||
* Stops the plugin. No further connections will be passed to the callback
|
||||
@@ -33,11 +33,11 @@ public interface StreamTransportPlugin {
|
||||
|
||||
/** Updates the plugin's local transport properties. */
|
||||
void setLocalProperties(Map<String, String> properties)
|
||||
throws InvalidTransportException;
|
||||
throws InvalidPropertiesException;
|
||||
|
||||
/** Updates the plugin's transport properties for the given contact. */
|
||||
void setRemoteProperties(ContactId c, Map<String, String> properties)
|
||||
throws InvalidTransportException;
|
||||
throws InvalidPropertiesException;
|
||||
|
||||
/** Updates the plugin's configuration properties. */
|
||||
void setConfig(Map<String, String> config) throws InvalidConfigException;
|
||||
|
||||
Reference in New Issue
Block a user