diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/net/sf/antcontrib/net/httpclient/HttpClientType.java | 9 |
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();
|