summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode/stroke/filetransfer/FileTransferOptions.java')
-rw-r--r--src/com/isode/stroke/filetransfer/FileTransferOptions.java63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/com/isode/stroke/filetransfer/FileTransferOptions.java b/src/com/isode/stroke/filetransfer/FileTransferOptions.java
new file mode 100644
index 0000000..fd529e9
--- /dev/null
+++ b/src/com/isode/stroke/filetransfer/FileTransferOptions.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2013-2015 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+/*
+ * Copyright (c) 2015 Tarun Gupta.
+ * Licensed under the simplified BSD license.
+ * See Documentation/Licenses/BSD-simplified.txt for more information.
+ */
+
+package com.isode.stroke.filetransfer;
+
+public class FileTransferOptions {
+
+ private boolean allowInBand_;
+ private boolean allowAssisted_;
+ private boolean allowProxied_;
+ private boolean allowDirect_;
+
+ public FileTransferOptions() {
+ allowInBand_ = true;
+ allowAssisted_ = true;
+ allowProxied_ = true;
+ allowDirect_ = true;
+ }
+
+ public FileTransferOptions withInBandAllowed(boolean b) {
+ allowInBand_ = b;
+ return this;
+ }
+
+ public boolean isInBandAllowed() {
+ return allowInBand_;
+ }
+
+ public FileTransferOptions withAssistedAllowed(boolean b) {
+ allowAssisted_ = b;
+ return this;
+ }
+
+ public boolean isAssistedAllowed() {
+ return allowAssisted_;
+ }
+
+ public FileTransferOptions withProxiedAllowed(boolean b) {
+ allowProxied_ = b;
+ return this;
+ }
+
+ public boolean isProxiedAllowed() {
+ return allowProxied_;
+ }
+
+ public FileTransferOptions withDirectAllowed(boolean b) {
+ allowDirect_ = b;
+ return this;
+ }
+
+ public boolean isDirectAllowed() {
+ return allowDirect_;
+ }
+} \ No newline at end of file