Commit 25653287 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Small interceptor signature change.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4532 b35dd754-fafc-0310-a699-88a17e54d16e
parent 54f3e6d6
...@@ -155,7 +155,7 @@ public class DefaultFileTransferManager extends BasicModule implements FileTrans ...@@ -155,7 +155,7 @@ public class DefaultFileTransferManager extends BasicModule implements FileTrans
public void removeFileTransferInterceptor(FileTransferInterceptor interceptor) { public void removeFileTransferInterceptor(FileTransferInterceptor interceptor) {
} }
public void fireFileTransferIntercept(String transferDigest) public void fireFileTransferIntercept(FileTransferProgress transfer)
throws FileTransferRejectedException throws FileTransferRejectedException
{ {
} }
......
...@@ -31,6 +31,6 @@ public interface FileTransferInterceptor { ...@@ -31,6 +31,6 @@ public interface FileTransferInterceptor {
* not go through. * not go through.
* *
*/ */
void interceptFileTransfer(FileTransfer transfer, boolean isReady) void interceptFileTransfer(FileTransferProgress transfer, boolean isReady)
throws FileTransferRejectedException; throws FileTransferRejectedException;
} }
...@@ -62,5 +62,5 @@ public interface FileTransferManager extends Module { ...@@ -62,5 +62,5 @@ public interface FileTransferManager extends Module {
void removeFileTransferInterceptor(FileTransferInterceptor interceptor); void removeFileTransferInterceptor(FileTransferInterceptor interceptor);
void fireFileTransferIntercept(String transferDigest) throws FileTransferRejectedException; void fireFileTransferIntercept(FileTransferProgress transfer) throws FileTransferRejectedException;
} }
...@@ -283,7 +283,7 @@ public class ProxyConnectionManager { ...@@ -283,7 +283,7 @@ public class ProxyConnectionManager {
transfer.setTransferFuture(executor.submit(new Runnable() { transfer.setTransferFuture(executor.submit(new Runnable() {
public void run() { public void run() {
try { try {
transferManager.fireFileTransferIntercept(digest); transferManager.fireFileTransferIntercept(transfer);
} }
catch (FileTransferRejectedException e) { catch (FileTransferRejectedException e) {
notifyFailure(transfer, e); notifyFailure(transfer, e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment