summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormattinger <[email protected]>2006-08-22 17:53:50 +0000
committermattinger <[email protected]>2006-08-22 17:53:50 +0000
commit27551e3c7402e93364f2d0d435082f5f48eec9fb (patch)
tree66cc3f4d271631d7d724ebba73ece8c44cf15f8b /src
parenteee6f3560e998d279718dbe9ede0bfabe410fb00 (diff)
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@28 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src')
-rw-r--r--src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java b/src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java
index 946b860..64365ac 100644
--- a/src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java
+++ b/src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java
@@ -64,6 +64,15 @@ public class HttpClientType
return clientParams;
}
+ public HttpStateType createHttpState() {
+ if (isReference()) {
+ tooManyAttributes();
+ }
+ HttpStateType state = new HttpStateType(getProject());
+ getClient().setState(state.getState());
+ return state;
+ }
+
public HostConfig createHostConfig() {
if (isReference()) {
tooManyAttributes();