File: http-state_type.html

package info (click to toggle)
ant-contrib 1.0~b3%2Bsvn177-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,036 kB
  • sloc: java: 12,697; xml: 2,675; makefile: 7
file content (178 lines) | stat: -rw-r--r-- 4,924 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Ant-contrib Tasks: Http Tasks</title>
  </head>

  <body>
    <h1>HttpState</h1>
    The &lt;httpState&gt; type allows the caller to create an HttpState
    instance, and add it as a reference, or be nested as a subelement of
    an &lt;httpClient&gt; element.
    
    <h2>Parameters</h2>
    <table border="1" cellpadding="2" cellspacing="0">
      <tr>
        <th>Attribute</th>
        <th>Description</th>
        <th>Required</th>
      </tr>
      <tr>
        <td valign="top"><i>id</i></td>
        <td valign="top">The reference id to store this HttpState under.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>refId</i></td>
        <td valign="top">The reference id of the HttpState which this element references.</td>
        <td align="center" valign="top">No.</td>
      </tr>
    </table>
    
    <h2>Parameters specified as Nested Elements</h2>
    
    <br />
    <br />
    <b>&lt;cookie&gt;</b><br />
    <p>
    Create a cookie.
    </p>
    <table border="1" cellpadding="2" cellspacing="0">
      <tr>
        <th>Attribute</th>
        <th>Description</th>
        <th>Required</th>
      </tr>
      <tr>
        <td valign="top"><i>domain</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>path</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>name</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>value</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>secure</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>comment</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>expiryDate</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>version</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>domainAttributeSpecified</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>pathAttributeSpecified</i></td>
        <td valign="top"></td>
        <td align="center" valign="top">No.</td>
      </tr>
    </table>
    
    <br />
    <br />
    <b>&lt;credentials&gt;</b><br />
    <p>
    Create authentication credentials.
    </p>
    <table border="1" cellpadding="2" cellspacing="0">
      <tr>
        <th>Attribute</th>
        <th>Description</th>
        <th>Required</th>
      </tr>
      <tr>
        <td valign="top"><i>host</i></td>
        <td valign="top">The host.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>port</i></td>
        <td valign="top">The port.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>realm</i></td>
        <td valign="top">The realm.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>scheme</i></td>
        <td valign="top">The scheme.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>username</i></td>
        <td valign="top">The username.</td>
        <td align="center" valign="top">No.</td>
      </tr>
      <tr>
        <td valign="top"><i>password</i></td>
        <td valign="top">The password.</td>
        <td align="center" valign="top">No.</td>
      </tr>
    </table>


    <br />
    <br />
    <b>&lt;proxyCredentials&gt;</b><br />
    <p>
    Create proxy authentication credentials.
    </p>
    <table border="1" cellpadding="2" cellspacing="0">
      <tr>
        <th>Identitical to &lt;credentials&gt; element.</th>
      </tr>
    </table>

    <h2>Examples</h2>


    <hr>
    <p align="center">Copyright &copy; 2002-2003 Ant-Contrib Project. All
    rights Reserved.</p>

    <pre>
    <code>
    &lt;httpState id="myState"&gt;
       &lt;cookie name="loginId" value="username" realm="sourceforge.net" /&gt;
    &lt;/httpState&gt;
    
    &lt;httpClient id="myClient" stateRefId="myState" /&gt;

    &lt;httpClient id="myClient&gt;
      &lt;httpState &gt;
        &lt;cookie name="loginId" value="username" realm="sourceforge.net" /&gt;
      &lt;/httpState&gt;
    &lt;/httpClient&gt;
    </code>
    </pre>
  </body>
</html>