summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authormattinger <[email protected]>2006-08-17 05:52:42 +0000
committermattinger <[email protected]>2006-08-17 05:52:42 +0000
commit2f043df017029699bd2d103308a586314bcca9ee (patch)
tree256d64a572424cf04b22d8df604f82446ddd5925 /src/java
parent871350dd27dfbb12c0fd6dd6b7424260309b318c (diff)
adding manuals
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@22 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src/java')
-rw-r--r--src/java/net/sf/antcontrib/net/httpclient/MethodParams.java4
-rw-r--r--src/java/net/sf/antcontrib/net/httpclient/Params.java13
2 files changed, 17 insertions, 0 deletions
diff --git a/src/java/net/sf/antcontrib/net/httpclient/MethodParams.java b/src/java/net/sf/antcontrib/net/httpclient/MethodParams.java
index 85185e7..fddd648 100644
--- a/src/java/net/sf/antcontrib/net/httpclient/MethodParams.java
+++ b/src/java/net/sf/antcontrib/net/httpclient/MethodParams.java
@@ -43,4 +43,8 @@ public class MethodParams
setParameter(param.getName(), param.getValue());
}
+ public void addConfiguredBoolean(Params.BooleanParam param) {
+ setBooleanParameter(param.getName(), param.getValue());
+ }
+
}
diff --git a/src/java/net/sf/antcontrib/net/httpclient/Params.java b/src/java/net/sf/antcontrib/net/httpclient/Params.java
index ac1be93..94acd30 100644
--- a/src/java/net/sf/antcontrib/net/httpclient/Params.java
+++ b/src/java/net/sf/antcontrib/net/httpclient/Params.java
@@ -27,6 +27,19 @@ public class Params {
}
+ public static class BooleanParam extends Param{
+ private boolean value;
+
+ public boolean getValue() {
+ return value;
+ }
+
+ public void setValue(boolean value) {
+ this.value = value;
+ }
+
+ }
+
public static class IntParam extends Param{
private int value;