1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Sun Oct 10 17:41:04 EDT 2004 -->
7
HttpClient 2.0.2 API: Class HttpState
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
28
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
<A HREF="../../../../org/apache/commons/httpclient/HttpParser.html"><B>PREV CLASS</B></A>
40
<A HREF="../../../../org/apache/commons/httpclient/HttpStatus.html"><B>NEXT CLASS</B></A></FONT></TD>
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
42
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
43
<A HREF="HttpState.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
49
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
52
<!-- =========== END OF NAVBAR =========== -->
55
<!-- ======== START OF CLASS DATA ======== -->
58
org.apache.commons.httpclient</FONT>
62
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
64
+--<B>org.apache.commons.httpclient.HttpState</B>
68
<DT>public class <B>HttpState</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></DL>
72
A container for HTTP attributes that may persist from request
73
to request, such as <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> and authentication
74
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A>.
77
Preemptive authentication can be turned on by using the property value of
78
#PREEMPTIVE_PROPERTY. If left unspecified, it has the default value of
79
#PREEMPTIVE_DEFAULT. This configurable behaviour conforms to rcf2617:
83
<DT><B>Version: </B><DD>$Revision: 1.22.2.5 $ $Date: 2004/09/22 23:36:58 $</DD>
84
<DT><B>Author: </B><DD><a href="mailto:remm@apache.org">Remy Maucherat</a>, Rodney Waldhoff, <a href="mailto:jsdever@apache.org">Jeff Dever</a>, Sean C. Sullivan, <a href="mailto:becke@u.washington.edu">Michael Becke</a>, <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a>, <a href="mailto:adrian@intencha.com">Adrian Sutton</a></DD>
89
<!-- ======== INNER CLASS SUMMARY ======== -->
92
<!-- =========== FIELD SUMMARY =========== -->
94
<A NAME="field_summary"><!-- --></A>
95
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
96
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
97
<TD COLSPAN=2><FONT SIZE="+2">
98
<B>Field Summary</B></FONT></TD>
100
<TR BGCOLOR="white" CLASS="TableRowColor">
101
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
102
<CODE>static <A HREF="../../../../org/apache/commons/httpclient/auth/HttpAuthRealm.html">HttpAuthRealm</A></CODE></FONT></TD>
103
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#DEFAULT_AUTH_REALM">DEFAULT_AUTH_REALM</A></B></CODE>
106
The default authentication realm.</TD>
108
<TR BGCOLOR="white" CLASS="TableRowColor">
109
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
110
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
111
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#PREEMPTIVE_DEFAULT">PREEMPTIVE_DEFAULT</A></B></CODE>
114
<B>Deprecated.</B> <I>This field and feature will be removed following HttpClient 3.0.</I></TD>
116
<TR BGCOLOR="white" CLASS="TableRowColor">
117
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
118
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
119
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#PREEMPTIVE_PROPERTY">PREEMPTIVE_PROPERTY</A></B></CODE>
122
<B>Deprecated.</B> <I>This field and feature will be removed following HttpClient 3.0.</I></TD>
126
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
128
<A NAME="constructor_summary"><!-- --></A>
129
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
130
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131
<TD COLSPAN=2><FONT SIZE="+2">
132
<B>Constructor Summary</B></FONT></TD>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#HttpState()">HttpState</A></B>()</CODE>
138
Default constructor.</TD>
142
<!-- ========== METHOD SUMMARY =========== -->
144
<A NAME="method_summary"><!-- --></A>
145
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
146
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
147
<TD COLSPAN=2><FONT SIZE="+2">
148
<B>Method Summary</B></FONT></TD>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE> void</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#addCookie(org.apache.commons.httpclient.Cookie)">addCookie</A></B>(<A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A> cookie)</CODE>
156
Adds an <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>HTTP cookie</CODE></A>, replacing any existing equivalent cookies.</TD>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE> void</CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#addCookies(org.apache.commons.httpclient.Cookie[])">addCookies</A></B>(<A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] cookies)</CODE>
164
Adds an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>HTTP cookies</CODE></A>.</TD>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE> int</CODE></FONT></TD>
169
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookiePolicy()">getCookiePolicy</A></B>()</CODE>
172
Returns the current <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A> for this
175
<TR BGCOLOR="white" CLASS="TableRowColor">
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
178
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies()">getCookies</A></B>()</CODE>
181
Returns an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> that this HTTP
182
state currently contains.</TD>
184
<TR BGCOLOR="white" CLASS="TableRowColor">
185
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
187
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies(java.lang.String, int, java.lang.String, boolean)">getCookies</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> domain,
189
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> path,
190
boolean secure)</CODE>
193
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><CODE>CookieSpec.match(String, int, String, boolean, Cookie)</CODE></A></I></TD>
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
198
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies(java.lang.String, int, java.lang.String, boolean, java.util.Date)">getCookies</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> domain,
200
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> path,
202
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html">Date</A> now)</CODE>
205
<B>Deprecated.</B> <I>use CookieSpec#match(String, int, String, boolean, Cookie)</I></TD>
207
<TR BGCOLOR="white" CLASS="TableRowColor">
208
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A></CODE></FONT></TD>
210
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String)">getCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm)</CODE>
213
<B>Deprecated.</B> <I>This method does not distinguish between realms on different
214
servers with the same name. Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String, java.lang.String)"><CODE>getCredentials(String, String)</CODE></A>
217
<TR BGCOLOR="white" CLASS="TableRowColor">
218
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A></CODE></FONT></TD>
220
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String, java.lang.String)">getCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
221
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> host)</CODE>
224
Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication realm on the
227
<TR BGCOLOR="white" CLASS="TableRowColor">
228
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229
<CODE> <A HREF="../../../../org/apache/commons/httpclient/HttpConnectionManager.html">HttpConnectionManager</A></CODE></FONT></TD>
230
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getHttpConnectionManager()">getHttpConnectionManager</A></B>()</CODE>
233
<B>Deprecated.</B> <I>Connection manager is controlled by the HttpClient class.
234
Use <A HREF="../../../../org/apache/commons/httpclient/HttpClient.html#getHttpConnectionManager()"><CODE>HttpClient.getHttpConnectionManager()</CODE></A> instead.</I></TD>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A></CODE></FONT></TD>
239
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String)">getProxyCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm)</CODE>
242
<B>Deprecated.</B> <I>This method does not distinguish between realms on different hosts.
243
Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String, java.lang.String)"><CODE>getProxyCredentials(String, String)</CODE></A> instead.</I></TD>
245
<TR BGCOLOR="white" CLASS="TableRowColor">
246
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247
<CODE> <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A></CODE></FONT></TD>
248
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String, java.lang.String)">getProxyCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
249
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> proxyHost)</CODE>
252
Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the proxy host with the given
253
authentication realm.</TD>
255
<TR BGCOLOR="white" CLASS="TableRowColor">
256
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257
<CODE> boolean</CODE></FONT></TD>
258
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#isAuthenticationPreemptive()">isAuthenticationPreemptive</A></B>()</CODE>
261
Returns <tt>true</tt> if preemptive authentication should be
262
attempted, <tt>false</tt> otherwise.</TD>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266
<CODE> boolean</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#purgeExpiredCookies()">purgeExpiredCookies</A></B>()</CODE>
270
Removes all of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP state
271
that have expired according to the current system time.</TD>
273
<TR BGCOLOR="white" CLASS="TableRowColor">
274
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275
<CODE> boolean</CODE></FONT></TD>
276
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#purgeExpiredCookies(java.util.Date)">purgeExpiredCookies</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html">Date</A> date)</CODE>
279
Removes all of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP state
280
that have expired by the specified <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html"><CODE>date</CODE></A>.</TD>
282
<TR BGCOLOR="white" CLASS="TableRowColor">
283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284
<CODE> void</CODE></FONT></TD>
285
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setAuthenticationPreemptive(boolean)">setAuthenticationPreemptive</A></B>(boolean value)</CODE>
288
Defines whether preemptive authentication should be
291
<TR BGCOLOR="white" CLASS="TableRowColor">
292
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293
<CODE> void</CODE></FONT></TD>
294
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCookiePolicy(int)">setCookiePolicy</A></B>(int policy)</CODE>
297
Sets the current <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A> for this HTTP
298
state to one of the following supported policies:
299
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#COMPATIBILITY"><CODE>CookiePolicy.COMPATIBILITY</CODE></A>,
300
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#NETSCAPE_DRAFT"><CODE>CookiePolicy.NETSCAPE_DRAFT</CODE></A> or
301
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#RFC2109"><CODE>CookiePolicy.RFC2109</CODE></A>.</TD>
303
<TR BGCOLOR="white" CLASS="TableRowColor">
304
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305
<CODE> void</CODE></FONT></TD>
306
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)">setCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
307
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</CODE>
310
<B>Deprecated.</B> <I>This method does not distinguish between realms with the
311
same name on different hosts.
312
Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, String, Credentials)</CODE></A> instead.</I></TD>
314
<TR BGCOLOR="white" CLASS="TableRowColor">
315
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
316
<CODE> void</CODE></FONT></TD>
317
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)">setCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
318
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> host,
319
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</CODE>
322
Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication
323
realm on the given host.</TD>
325
<TR BGCOLOR="white" CLASS="TableRowColor">
326
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
327
<CODE> void</CODE></FONT></TD>
328
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager)">setHttpConnectionManager</A></B>(<A HREF="../../../../org/apache/commons/httpclient/HttpConnectionManager.html">HttpConnectionManager</A> httpConnectionManager)</CODE>
331
<B>Deprecated.</B> <I>Connection manager is controlled by the HttpClient class.
332
Use <A HREF="../../../../org/apache/commons/httpclient/HttpClient.html#setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager)"><CODE>HttpClient.setHttpConnectionManager(HttpConnectionManager)</CODE></A> instead.</I></TD>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE> void</CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)">setProxyCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
338
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</CODE>
341
<B>Deprecated.</B> <I>This method does not differentiate between realms with
342
the same name on different servers. Use
343
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A> instead.</I></TD>
345
<TR BGCOLOR="white" CLASS="TableRowColor">
346
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
347
<CODE> void</CODE></FONT></TD>
348
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)">setProxyCredentials</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
349
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> proxyHost,
350
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</CODE>
353
Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given proxy authentication
354
realm on the given proxy host.</TD>
356
<TR BGCOLOR="white" CLASS="TableRowColor">
357
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
358
<CODE> <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
359
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#toString()">toString</A></B>()</CODE>
362
Returns a string representation of this HTTP state.</TD>
365
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
366
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
367
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
368
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></B></TD>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
377
<!-- ============ FIELD DETAIL =========== -->
379
<A NAME="field_detail"><!-- --></A>
380
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
381
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
382
<TD COLSPAN=1><FONT SIZE="+2">
383
<B>Field Detail</B></FONT></TD>
387
<A NAME="PREEMPTIVE_PROPERTY"><!-- --></A><H3>
388
PREEMPTIVE_PROPERTY</H3>
390
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>PREEMPTIVE_PROPERTY</B></PRE>
392
<DD><B>Deprecated.</B> <I>This field and feature will be removed following HttpClient 3.0.</I>
394
<DD>The boolean system property name to turn on preemptive authentication.</DL>
397
<A NAME="PREEMPTIVE_DEFAULT"><!-- --></A><H3>
398
PREEMPTIVE_DEFAULT</H3>
400
public static final <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>PREEMPTIVE_DEFAULT</B></PRE>
402
<DD><B>Deprecated.</B> <I>This field and feature will be removed following HttpClient 3.0.</I>
404
<DD>The default value for <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#PREEMPTIVE_PROPERTY"><CODE>PREEMPTIVE_PROPERTY</CODE></A>.</DL>
407
<A NAME="DEFAULT_AUTH_REALM"><!-- --></A><H3>
408
DEFAULT_AUTH_REALM</H3>
410
public static final <A HREF="../../../../org/apache/commons/httpclient/auth/HttpAuthRealm.html">HttpAuthRealm</A> <B>DEFAULT_AUTH_REALM</B></PRE>
412
<DD>The default authentication realm.</DL>
414
<!-- ========= CONSTRUCTOR DETAIL ======== -->
416
<A NAME="constructor_detail"><!-- --></A>
417
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
418
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
419
<TD COLSPAN=1><FONT SIZE="+2">
420
<B>Constructor Detail</B></FONT></TD>
424
<A NAME="HttpState()"><!-- --></A><H3>
427
public <B>HttpState</B>()</PRE>
429
<DD>Default constructor.</DL>
431
<!-- ============ METHOD DETAIL ========== -->
433
<A NAME="method_detail"><!-- --></A>
434
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
435
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
436
<TD COLSPAN=1><FONT SIZE="+2">
437
<B>Method Detail</B></FONT></TD>
441
<A NAME="addCookie(org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
444
public void <B>addCookie</B>(<A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A> cookie)</PRE>
446
<DD>Adds an <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>HTTP cookie</CODE></A>, replacing any existing equivalent cookies.
447
If the given cookie has already expired it will not be added, but existing
448
values will still be removed.<DD><DL>
449
<DT><B>Parameters:</B><DD><CODE>cookie</CODE> - the <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookie</CODE></A> to be added<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#addCookies(org.apache.commons.httpclient.Cookie[])"><CODE>addCookies(Cookie[])</CODE></A></DL>
454
<A NAME="addCookies(org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
457
public void <B>addCookies</B>(<A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] cookies)</PRE>
459
<DD>Adds an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>HTTP cookies</CODE></A>. Cookies are added individually and
460
in the given array order. If any of the given cookies has already expired it will
461
not be added, but existing values will still be removed.<DD><DL>
462
<DT><B>Parameters:</B><DD><CODE>cookies</CODE> - the <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> to be added<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#addCookie(org.apache.commons.httpclient.Cookie)"><CODE>addCookie(Cookie)</CODE></A></DL>
467
<A NAME="getCookies()"><!-- --></A><H3>
470
public <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>getCookies</B>()</PRE>
472
<DD>Returns an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> that this HTTP
473
state currently contains.<DD><DL>
474
<DT><B>Returns:</B><DD>an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A>.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies(java.lang.String, int, java.lang.String, boolean, java.util.Date)"><CODE>getCookies(String, int, String, boolean, java.util.Date)</CODE></A></DL>
479
<A NAME="getCookies(java.lang.String, int, java.lang.String, boolean, java.util.Date)"><!-- --></A><H3>
482
public <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>getCookies</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> domain,
484
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> path,
486
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html">Date</A> now)</PRE>
488
<DD><B>Deprecated.</B> <I>use CookieSpec#match(String, int, String, boolean, Cookie)</I>
490
<DD>Returns an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP
491
state that match the given request parameters.<DD><DL>
492
<DT><B>Parameters:</B><DD><CODE>domain</CODE> - the request domain<DD><CODE>port</CODE> - the request port<DD><CODE>path</CODE> - the request path<DD><CODE>secure</CODE> - <code>true</code> when using HTTPS<DD><CODE>now</CODE> - the <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html"><CODE>date</CODE></A> by which expiration is determined<DT><B>Returns:</B><DD>an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A>.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies()"><CODE>getCookies()</CODE></A></DL>
497
<A NAME="getCookies(java.lang.String, int, java.lang.String, boolean)"><!-- --></A><H3>
500
public <A HREF="../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>getCookies</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> domain,
502
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> path,
503
boolean secure)</PRE>
505
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><CODE>CookieSpec.match(String, int, String, boolean, Cookie)</CODE></A></I>
507
<DD>Returns an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP
508
state that match the given request parameters.<DD><DL>
509
<DT><B>Parameters:</B><DD><CODE>domain</CODE> - the request domain<DD><CODE>port</CODE> - the request port<DD><CODE>path</CODE> - the request path<DD><CODE>secure</CODE> - <code>true</code> when using HTTPS<DT><B>Returns:</B><DD>an array of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A>.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCookies()"><CODE>getCookies()</CODE></A></DL>
514
<A NAME="purgeExpiredCookies()"><!-- --></A><H3>
515
purgeExpiredCookies</H3>
517
public boolean <B>purgeExpiredCookies</B>()</PRE>
519
<DD>Removes all of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP state
520
that have expired according to the current system time.<DD><DL>
521
<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#purgeExpiredCookies(java.util.Date)"><CODE>purgeExpiredCookies(java.util.Date)</CODE></A></DL>
526
<A NAME="purgeExpiredCookies(java.util.Date)"><!-- --></A><H3>
527
purgeExpiredCookies</H3>
529
public boolean <B>purgeExpiredCookies</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html">Date</A> date)</PRE>
531
<DD>Removes all of <A HREF="../../../../org/apache/commons/httpclient/Cookie.html"><CODE>cookies</CODE></A> in this HTTP state
532
that have expired by the specified <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html"><CODE>date</CODE></A>.<DD><DL>
533
<DT><B>Parameters:</B><DD><CODE>date</CODE> - The <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html"><CODE>date</CODE></A> to compare against.<DT><B>Returns:</B><DD>true if any cookies were purged.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/Cookie.html#isExpired(java.util.Date)"><CODE>Cookie.isExpired(java.util.Date)</CODE></A>,
534
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#purgeExpiredCookies()"><CODE>purgeExpiredCookies()</CODE></A></DL>
539
<A NAME="getCookiePolicy()"><!-- --></A><H3>
542
public int <B>getCookiePolicy</B>()</PRE>
544
<DD>Returns the current <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A> for this
546
<DT><B>Returns:</B><DD>The <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A>.</DL>
551
<A NAME="setAuthenticationPreemptive(boolean)"><!-- --></A><H3>
552
setAuthenticationPreemptive</H3>
554
public void <B>setAuthenticationPreemptive</B>(boolean value)</PRE>
556
<DD>Defines whether preemptive authentication should be
558
<DT><B>Parameters:</B><DD><CODE>value</CODE> - <tt>true</tt> if preemptive authentication should be
559
attempted, <tt>false</tt> otherwise.</DL>
564
<A NAME="isAuthenticationPreemptive()"><!-- --></A><H3>
565
isAuthenticationPreemptive</H3>
567
public boolean <B>isAuthenticationPreemptive</B>()</PRE>
569
<DD>Returns <tt>true</tt> if preemptive authentication should be
570
attempted, <tt>false</tt> otherwise.<DD><DL>
571
<DT><B>Returns:</B><DD>boolean flag.</DL>
576
<A NAME="setCookiePolicy(int)"><!-- --></A><H3>
579
public void <B>setCookiePolicy</B>(int policy)</PRE>
581
<DD>Sets the current <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A> for this HTTP
582
state to one of the following supported policies:
583
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#COMPATIBILITY"><CODE>CookiePolicy.COMPATIBILITY</CODE></A>,
584
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#NETSCAPE_DRAFT"><CODE>CookiePolicy.NETSCAPE_DRAFT</CODE></A> or
585
<A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html#RFC2109"><CODE>CookiePolicy.RFC2109</CODE></A>.<DD><DL>
586
<DT><B>Parameters:</B><DD><CODE>policy</CODE> - new <A HREF="../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><CODE>cookie policy</CODE></A></DL>
591
<A NAME="setCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)"><!-- --></A><H3>
594
public void <B>setCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
595
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</PRE>
597
<DD><B>Deprecated.</B> <I>This method does not distinguish between realms with the
598
same name on different hosts.
599
Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, String, Credentials)</CODE></A> instead.</I>
601
<DD>Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication
602
realm. The <code>null</code> realm signifies default credentials, which
603
should be used when no <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> have been explictly
604
supplied for the given challenging realm. Any previous credentials for
605
the given realm will be overwritten.<DD><DL>
606
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>credentials</CODE> - the authentication credentials for the given realm<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String, java.lang.String)"><CODE>getCredentials(String, String)</CODE></A>,
607
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A></DL>
612
<A NAME="setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><!-- --></A><H3>
615
public void <B>setCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
616
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> host,
617
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</PRE>
619
<DD>Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication
620
realm on the given host. The <code>null</code> realm signifies default
621
credentials for the given host, which should be used when no
622
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> have been explictly supplied for the
623
challenging realm. The <code>null</code> host signifies default
624
credentials, which should be used when no <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A>
625
have been explictly supplied for the challenging host. Any previous
626
credentials for the given realm on the given host will be overwritten.<DD><DL>
627
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>host</CODE> - the host the realm belongs to<DD><CODE>credentials</CODE> - the authentication <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A>
628
for the given realm.<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String, java.lang.String)"><CODE>getCredentials(String, String)</CODE></A>,
629
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A></DL>
634
<A NAME="getCredentials(java.lang.String, java.lang.String)"><!-- --></A><H3>
637
public <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> <B>getCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
638
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> host)</PRE>
640
<DD>Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication realm on the
643
If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials.
644
If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding
646
If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the
647
corresponding credentials. If the <i>realm</i> does not exist, return
648
the default Credentials. If there are no default credentials, return
649
<code>null</code>.<DD><DL>
650
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>host</CODE> - the host the realm is on<DT><B>Returns:</B><DD>the credentials<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, String, Credentials)</CODE></A></DL>
655
<A NAME="getCredentials(java.lang.String)"><!-- --></A><H3>
658
public <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> <B>getCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm)</PRE>
660
<DD><B>Deprecated.</B> <I>This method does not distinguish between realms on different
661
servers with the same name. Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getCredentials(java.lang.String, java.lang.String)"><CODE>getCredentials(String, String)</CODE></A>
664
<DD>Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given authentication realm.<DD><DL>
665
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DT><B>Returns:</B><DD>the credentials<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, String, Credentials)</CODE></A></DL>
670
<A NAME="setProxyCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)"><!-- --></A><H3>
671
setProxyCredentials</H3>
673
public void <B>setProxyCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
674
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</PRE>
676
<DD><B>Deprecated.</B> <I>This method does not differentiate between realms with
677
the same name on different servers. Use
678
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A> instead.</I>
680
<DD>Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given proxy authentication
681
realm. The <code>null</code> realm signifies default credentials, which
682
should be used when no <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> have been explictly
683
supplied for the given challenging proxy realm. Any previous credentials for
684
the given realm will be overwritten.<DD><DL>
685
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>credentials</CODE> - the authentication credentials for the given realm<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String)"><CODE>getProxyCredentials(String)</CODE></A>,
686
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, Credentials)</CODE></A></DL>
691
<A NAME="setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><!-- --></A><H3>
692
setProxyCredentials</H3>
694
public void <B>setProxyCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
695
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> proxyHost,
696
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> credentials)</PRE>
698
<DD>Sets the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given proxy authentication
699
realm on the given proxy host. The <code>null</code> proxy realm signifies
700
default credentials for the given proxy host, which should be used when no
701
<A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> have been explictly supplied for the
702
challenging proxy realm. The <code>null</code> proxy host signifies default
703
credentials, which should be used when no <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A>
704
have been explictly supplied for the challenging proxy host. Any previous
705
credentials for the given proxy realm on the given proxy host will be
707
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>proxyHost</CODE> - the proxy host<DD><CODE>credentials</CODE> - the authentication credentials for the given realm<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String)"><CODE>getProxyCredentials(String)</CODE></A>,
708
<A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setCredentials(java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setCredentials(String, Credentials)</CODE></A></DL>
713
<A NAME="getProxyCredentials(java.lang.String)"><!-- --></A><H3>
714
getProxyCredentials</H3>
716
public <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> <B>getProxyCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm)</PRE>
718
<DD><B>Deprecated.</B> <I>This method does not distinguish between realms on different hosts.
719
Use <A HREF="../../../../org/apache/commons/httpclient/HttpState.html#getProxyCredentials(java.lang.String, java.lang.String)"><CODE>getProxyCredentials(String, String)</CODE></A> instead.</I>
721
<DD>Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the given
722
proxy authentication realm.
724
If the <i>realm</i> exists, return the coresponding credentials. If the
725
<i>realm</i> does not exist, return the default Credentials. If there is
726
no default credentials, return <code>null</code>.<DD><DL>
727
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DT><B>Returns:</B><DD>the credentials<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A></DL>
732
<A NAME="getProxyCredentials(java.lang.String, java.lang.String)"><!-- --></A><H3>
733
getProxyCredentials</H3>
735
public <A HREF="../../../../org/apache/commons/httpclient/Credentials.html">Credentials</A> <B>getProxyCredentials</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> realm,
736
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> proxyHost)</PRE>
738
<DD>Get the <A HREF="../../../../org/apache/commons/httpclient/Credentials.html"><CODE>credentials</CODE></A> for the proxy host with the given
739
authentication realm.
741
If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials.
742
If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding
744
If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the
745
corresponding credentials. If the <i>realm</i> does not exist, return
746
the default Credentials. If there are no default credentials, return
747
<code>null</code>.<DD><DL>
748
<DT><B>Parameters:</B><DD><CODE>realm</CODE> - the authentication realm<DD><CODE>proxyHost</CODE> - the proxy host the realm is on<DT><B>Returns:</B><DD>the credentials<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpState.html#setProxyCredentials(java.lang.String, java.lang.String, org.apache.commons.httpclient.Credentials)"><CODE>setProxyCredentials(String, String, Credentials)</CODE></A></DL>
753
<A NAME="toString()"><!-- --></A><H3>
756
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE>
758
<DD>Returns a string representation of this HTTP state.<DD><DL>
759
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></CODE></DL>
762
<DT><B>Returns:</B><DD>The string representation of the HTTP state.<DT><B>See Also: </B><DD><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()"><CODE>Object.toString()</CODE></A></DL>
767
<A NAME="getHttpConnectionManager()"><!-- --></A><H3>
768
getHttpConnectionManager</H3>
770
public <A HREF="../../../../org/apache/commons/httpclient/HttpConnectionManager.html">HttpConnectionManager</A> <B>getHttpConnectionManager</B>()</PRE>
772
<DD><B>Deprecated.</B> <I>Connection manager is controlled by the HttpClient class.
773
Use <A HREF="../../../../org/apache/commons/httpclient/HttpClient.html#getHttpConnectionManager()"><CODE>HttpClient.getHttpConnectionManager()</CODE></A> instead.</I>
775
<DD>Returns the httpConnectionManager.<DD><DL>
776
<DT><B>Returns:</B><DD>HttpConnectionManager<DT><B>Since: </B><DD>2.0</DD>
782
<A NAME="setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager)"><!-- --></A><H3>
783
setHttpConnectionManager</H3>
785
public void <B>setHttpConnectionManager</B>(<A HREF="../../../../org/apache/commons/httpclient/HttpConnectionManager.html">HttpConnectionManager</A> httpConnectionManager)</PRE>
787
<DD><B>Deprecated.</B> <I>Connection manager is controlled by the HttpClient class.
788
Use <A HREF="../../../../org/apache/commons/httpclient/HttpClient.html#setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager)"><CODE>HttpClient.setHttpConnectionManager(HttpConnectionManager)</CODE></A> instead.</I>
790
<DD>Sets the httpConnectionManager.<DD><DL>
791
<DT><B>Parameters:</B><DD><CODE>httpConnectionManager</CODE> - The httpConnectionManager to set<DT><B>Since: </B><DD>2.0</DD>
795
<!-- ========= END OF CLASS DATA ========= -->
798
<!-- ========== START OF NAVBAR ========== -->
799
<A NAME="navbar_bottom"><!-- --></A>
800
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
802
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
803
<A NAME="navbar_bottom_firstrow"><!-- --></A>
804
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
805
<TR ALIGN="center" VALIGN="top">
806
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
807
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
808
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
809
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/HttpState.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
810
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
811
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
812
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
813
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
817
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
823
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
824
<A HREF="../../../../org/apache/commons/httpclient/HttpParser.html"><B>PREV CLASS</B></A>
825
<A HREF="../../../../org/apache/commons/httpclient/HttpStatus.html"><B>NEXT CLASS</B></A></FONT></TD>
826
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
827
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
828
<A HREF="HttpState.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
831
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
832
SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
833
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
834
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
837
<!-- =========== END OF NAVBAR =========== -->
840
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.