~ubuntu-branches/ubuntu/lucid/commons-httpclient/lucid

« back to all changes in this revision

Viewing changes to docs/apidocs/org/apache/commons/httpclient/cookie/CookieSpecBase.html

  • Committer: Bazaar Package Importer
  • Author(s): Barry Hawkins
  • Date: 2005-11-25 13:12:23 UTC
  • Revision ID: james.westby@ubuntu.com-20051125131223-2g7eyo21pqgrohpo
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc on Sun Oct 10 17:41:05 EDT 2004 -->
 
6
<TITLE>
 
7
HttpClient 2.0.2 API: Class  CookieSpecBase
 
8
</TITLE>
 
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 
10
</HEAD>
 
11
<BODY BGCOLOR="white">
 
12
 
 
13
<!-- ========== START OF NAVBAR ========== -->
 
14
<A NAME="navbar_top"><!-- --></A>
 
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
16
<TR>
 
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>&nbsp;</TD>
 
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
23
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CookieSpecBase.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
28
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
29
  </TR>
 
30
</TABLE>
 
31
</TD>
 
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
33
</EM>
 
34
</TD>
 
35
</TR>
 
36
 
 
37
<TR>
 
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
39
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><B>PREV CLASS</B></A>&nbsp;
 
40
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/NetscapeDraftSpec.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>  &nbsp;
 
43
&nbsp;<A HREF="CookieSpecBase.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
44
</TR>
 
45
<TR>
 
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
47
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
49
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
50
</TR>
 
51
</TABLE>
 
52
<!-- =========== END OF NAVBAR =========== -->
 
53
 
 
54
<HR>
 
55
<!-- ======== START OF CLASS DATA ======== -->
 
56
<H2>
 
57
<FONT SIZE="-1">
 
58
org.apache.commons.httpclient.cookie</FONT>
 
59
<BR>
 
60
Class  CookieSpecBase</H2>
 
61
<PRE>
 
62
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
 
63
  |
 
64
  +--<B>org.apache.commons.httpclient.cookie.CookieSpecBase</B>
 
65
</PRE>
 
66
<DL>
 
67
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></DD>
 
68
</DL>
 
69
<DL>
 
70
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/cookie/NetscapeDraftSpec.html">NetscapeDraftSpec</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/RFC2109Spec.html">RFC2109Spec</A></DD>
 
71
</DL>
 
72
<HR>
 
73
<DL>
 
74
<DT>public class <B>CookieSpecBase</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A><DT>implements <A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></DL>
 
75
 
 
76
<P>
 
77
Cookie management functions shared by all specification.
 
78
<P>
 
79
<DL>
 
80
<DT><B>Since: </B><DD>2.0</DD>
 
81
<DT><B>Author: </B><DD>B.C. Holmes, <a href="mailto:jericho@thinkfree.com">Park, Sung-Gu</a>, <a href="mailto:dsale@us.britannica.com">Doug Sale</a>, Rod Waldhoff, dIon Gillard, Sean C. Sullivan, <a href="mailto:JEvans@Cyveillance.com">John Evans</a>, Marc A. Saegesser, <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a></DD>
 
82
</DL>
 
83
<HR>
 
84
 
 
85
<P>
 
86
<!-- ======== INNER CLASS SUMMARY ======== -->
 
87
 
 
88
 
 
89
<!-- =========== FIELD SUMMARY =========== -->
 
90
 
 
91
<A NAME="field_summary"><!-- --></A>
 
92
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
93
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
94
<TD COLSPAN=2><FONT SIZE="+2">
 
95
<B>Field Summary</B></FONT></TD>
 
96
</TR>
 
97
<TR BGCOLOR="white" CLASS="TableRowColor">
 
98
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
99
<CODE>protected static&nbsp;<A HREF="http://jakarta.apache.org/commons/logging/apidocs/org/apache/commons/logging/Log.html">Log</A></CODE></FONT></TD>
 
100
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#LOG">LOG</A></B></CODE>
 
101
 
 
102
<BR>
 
103
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log object</TD>
 
104
</TR>
 
105
</TABLE>
 
106
&nbsp;<A NAME="fields_inherited_from_class_org.apache.commons.httpclient.cookie.CookieSpec"><!-- --></A>
 
107
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
108
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
109
<TD><B>Fields inherited from interface org.apache.commons.httpclient.cookie.<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></B></TD>
 
110
</TR>
 
111
<TR BGCOLOR="white" CLASS="TableRowColor">
 
112
<TD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#PATH_DELIM">PATH_DELIM</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#PATH_DELIM_CHAR">PATH_DELIM_CHAR</A></CODE></TD>
 
113
</TR>
 
114
</TABLE>
 
115
&nbsp;
 
116
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
117
 
 
118
<A NAME="constructor_summary"><!-- --></A>
 
119
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
120
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
121
<TD COLSPAN=2><FONT SIZE="+2">
 
122
<B>Constructor Summary</B></FONT></TD>
 
123
</TR>
 
124
<TR BGCOLOR="white" CLASS="TableRowColor">
 
125
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#CookieSpecBase()">CookieSpecBase</A></B>()</CODE>
 
126
 
 
127
<BR>
 
128
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor</TD>
 
129
</TR>
 
130
</TABLE>
 
131
&nbsp;
 
132
<!-- ========== METHOD SUMMARY =========== -->
 
133
 
 
134
<A NAME="method_summary"><!-- --></A>
 
135
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
136
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
137
<TD COLSPAN=2><FONT SIZE="+2">
 
138
<B>Method Summary</B></FONT></TD>
 
139
</TR>
 
140
<TR BGCOLOR="white" CLASS="TableRowColor">
 
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
142
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
143
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#formatCookie(org.apache.commons.httpclient.Cookie)">formatCookie</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</CODE>
 
144
 
 
145
<BR>
 
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a string suitable for sending in a <tt>"Cookie"</tt> header</TD>
 
147
</TR>
 
148
<TR BGCOLOR="white" CLASS="TableRowColor">
 
149
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
150
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A></CODE></FONT></TD>
 
151
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#formatCookieHeader(org.apache.commons.httpclient.Cookie)">formatCookieHeader</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</CODE>
 
152
 
 
153
<BR>
 
154
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> containing the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>.</TD>
 
155
</TR>
 
156
<TR BGCOLOR="white" CLASS="TableRowColor">
 
157
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
158
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A></CODE></FONT></TD>
 
159
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#formatCookieHeader(org.apache.commons.httpclient.Cookie[])">formatCookieHeader</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)</CODE>
 
160
 
 
161
<BR>
 
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> containing all <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s
 
163
 in <i>cookies</i>.</TD>
 
164
</TR>
 
165
<TR BGCOLOR="white" CLASS="TableRowColor">
 
166
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
167
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
 
168
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#formatCookies(org.apache.commons.httpclient.Cookie[])">formatCookies</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)</CODE>
 
169
 
 
170
<BR>
 
171
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> header value containing all <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s in
 
172
 <i>cookies</i> suitable for sending in a <tt>"Cookie"</tt> header</TD>
 
173
</TR>
 
174
<TR BGCOLOR="white" CLASS="TableRowColor">
 
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
176
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
177
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)">match</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
178
      int&nbsp;port,
 
179
      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
180
      boolean&nbsp;secure,
 
181
      <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</CODE>
 
182
 
 
183
<BR>
 
184
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return <tt>true</tt> if the cookie should be submitted with a request
 
185
 with given attributes, <tt>false</tt> otherwise.</TD>
 
186
</TR>
 
187
<TR BGCOLOR="white" CLASS="TableRowColor">
 
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
189
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
 
190
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie[])">match</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
191
      int&nbsp;port,
 
192
      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
193
      boolean&nbsp;secure,
 
194
      <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)</CODE>
 
195
 
 
196
<BR>
 
197
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s that should be submitted with a
 
198
 request with given attributes, <tt>false</tt> otherwise.</TD>
 
199
</TR>
 
200
<TR BGCOLOR="white" CLASS="TableRowColor">
 
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
202
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
 
203
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#parse(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Header)">parse</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
204
      int&nbsp;port,
 
205
      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
206
      boolean&nbsp;secure,
 
207
      <A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A>&nbsp;header)</CODE>
 
208
 
 
209
<BR>
 
210
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the <tt>"Set-Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> into an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s.</TD>
 
211
</TR>
 
212
<TR BGCOLOR="white" CLASS="TableRowColor">
 
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
214
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]</CODE></FONT></TD>
 
215
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#parse(java.lang.String, int, java.lang.String, boolean, java.lang.String)">parse</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
216
      int&nbsp;port,
 
217
      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
218
      boolean&nbsp;secure,
 
219
      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;header)</CODE>
 
220
 
 
221
<BR>
 
222
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the Set-Cookie value into an array of <tt>Cookie</tt>s.</TD>
 
223
</TR>
 
224
<TR BGCOLOR="white" CLASS="TableRowColor">
 
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
226
<CODE>&nbsp;void</CODE></FONT></TD>
 
227
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#parseAttribute(org.apache.commons.httpclient.NameValuePair, org.apache.commons.httpclient.Cookie)">parseAttribute</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/NameValuePair.html">NameValuePair</A>&nbsp;attribute,
 
228
               <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</CODE>
 
229
 
 
230
<BR>
 
231
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the cookie attribute and update the corresponsing <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>
 
232
 properties.</TD>
 
233
</TR>
 
234
<TR BGCOLOR="white" CLASS="TableRowColor">
 
235
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
236
<CODE>&nbsp;void</CODE></FONT></TD>
 
237
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html#validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)">validate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
238
         int&nbsp;port,
 
239
         <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
240
         boolean&nbsp;secure,
 
241
         <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</CODE>
 
242
 
 
243
<BR>
 
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs most common <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> validation</TD>
 
245
</TR>
 
246
</TABLE>
 
247
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
248
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
249
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
250
<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>
 
251
</TR>
 
252
<TR BGCOLOR="white" CLASS="TableRowColor">
 
253
<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#toString()">toString</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>
 
254
</TR>
 
255
</TABLE>
 
256
&nbsp;
 
257
<P>
 
258
 
 
259
<!-- ============ FIELD DETAIL =========== -->
 
260
 
 
261
<A NAME="field_detail"><!-- --></A>
 
262
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
263
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
264
<TD COLSPAN=1><FONT SIZE="+2">
 
265
<B>Field Detail</B></FONT></TD>
 
266
</TR>
 
267
</TABLE>
 
268
 
 
269
<A NAME="LOG"><!-- --></A><H3>
 
270
LOG</H3>
 
271
<PRE>
 
272
protected static final <A HREF="http://jakarta.apache.org/commons/logging/apidocs/org/apache/commons/logging/Log.html">Log</A> <B>LOG</B></PRE>
 
273
<DL>
 
274
<DD>Log object</DL>
 
275
 
 
276
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
277
 
 
278
<A NAME="constructor_detail"><!-- --></A>
 
279
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
280
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
281
<TD COLSPAN=1><FONT SIZE="+2">
 
282
<B>Constructor Detail</B></FONT></TD>
 
283
</TR>
 
284
</TABLE>
 
285
 
 
286
<A NAME="CookieSpecBase()"><!-- --></A><H3>
 
287
CookieSpecBase</H3>
 
288
<PRE>
 
289
public <B>CookieSpecBase</B>()</PRE>
 
290
<DL>
 
291
<DD>Default constructor</DL>
 
292
 
 
293
<!-- ============ METHOD DETAIL ========== -->
 
294
 
 
295
<A NAME="method_detail"><!-- --></A>
 
296
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 
297
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
298
<TD COLSPAN=1><FONT SIZE="+2">
 
299
<B>Method Detail</B></FONT></TD>
 
300
</TR>
 
301
</TABLE>
 
302
 
 
303
<A NAME="parse(java.lang.String, int, java.lang.String, boolean, java.lang.String)"><!-- --></A><H3>
 
304
parse</H3>
 
305
<PRE>
 
306
public <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
307
                      int&nbsp;port,
 
308
                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
309
                      boolean&nbsp;secure,
 
310
                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;header)
 
311
               throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></PRE>
 
312
<DL>
 
313
<DD>Parses the Set-Cookie value into an array of <tt>Cookie</tt>s.
 
314
 
 
315
 <P>The syntax for the Set-Cookie response header is:
 
316
 
 
317
 <PRE>
 
318
 set-cookie      =    "Set-Cookie:" cookies
 
319
 cookies         =    1#cookie
 
320
 cookie          =    NAME "=" VALUE * (";" cookie-av)
 
321
 NAME            =    attr
 
322
 VALUE           =    value
 
323
 cookie-av       =    "Comment" "=" value
 
324
                 |    "Domain" "=" value
 
325
                 |    "Max-Age" "=" value
 
326
                 |    "Path" "=" value
 
327
                 |    "Secure"
 
328
                 |    "Version" "=" 1*DIGIT
 
329
 </PRE><DD><DL>
 
330
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#parse(java.lang.String, int, java.lang.String, boolean, java.lang.String)">parse</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
331
</DD>
 
332
<DD><DL>
 
333
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host from which the <tt>Set-Cookie</tt> value was
 
334
 received<DD><CODE>port</CODE> - the port from which the <tt>Set-Cookie</tt> value was
 
335
 received<DD><CODE>path</CODE> - the path from which the <tt>Set-Cookie</tt> value was
 
336
 received<DD><CODE>secure</CODE> - <tt>true</tt> when the <tt>Set-Cookie</tt> value was
 
337
 received over secure conection<DD><CODE>header</CODE> - the <tt>Set-Cookie</tt> received from the server<DT><B>Returns:</B><DD>an array of <tt>Cookie</tt>s parsed from the Set-Cookie value<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></CODE> - if an exception occurs during parsing</DL>
 
338
</DD>
 
339
</DL>
 
340
<HR>
 
341
 
 
342
<A NAME="parse(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Header)"><!-- --></A><H3>
 
343
parse</H3>
 
344
<PRE>
 
345
public <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
346
                      int&nbsp;port,
 
347
                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
348
                      boolean&nbsp;secure,
 
349
                      <A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A>&nbsp;header)
 
350
               throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></PRE>
 
351
<DL>
 
352
<DD>Parse the <tt>"Set-Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> into an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s.
 
353
 
 
354
 <P>The syntax for the Set-Cookie response header is:
 
355
 
 
356
 <PRE>
 
357
 set-cookie      =    "Set-Cookie:" cookies
 
358
 cookies         =    1#cookie
 
359
 cookie          =    NAME "=" VALUE * (";" cookie-av)
 
360
 NAME            =    attr
 
361
 VALUE           =    value
 
362
 cookie-av       =    "Comment" "=" value
 
363
                 |    "Domain" "=" value
 
364
                 |    "Max-Age" "=" value
 
365
                 |    "Path" "=" value
 
366
                 |    "Secure"
 
367
                 |    "Version" "=" 1*DIGIT
 
368
 </PRE><DD><DL>
 
369
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#parse(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Header)">parse</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
370
</DD>
 
371
<DD><DL>
 
372
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host from which the <tt>Set-Cookie</tt> header was
 
373
 received<DD><CODE>port</CODE> - the port from which the <tt>Set-Cookie</tt> header was
 
374
 received<DD><CODE>path</CODE> - the path from which the <tt>Set-Cookie</tt> header was
 
375
 received<DD><CODE>secure</CODE> - <tt>true</tt> when the <tt>Set-Cookie</tt> header was
 
376
 received over secure conection<DD><CODE>header</CODE> - the <tt>Set-Cookie</tt> received from the server<DT><B>Returns:</B><DD>an array of <tt>Cookie</tt>s parsed from the <tt>"Set-Cookie"
 
377
 </tt> header<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></CODE> - if an exception occurs during parsing</DL>
 
378
</DD>
 
379
</DL>
 
380
<HR>
 
381
 
 
382
<A NAME="parseAttribute(org.apache.commons.httpclient.NameValuePair, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
383
parseAttribute</H3>
 
384
<PRE>
 
385
public void <B>parseAttribute</B>(<A HREF="../../../../../org/apache/commons/httpclient/NameValuePair.html">NameValuePair</A>&nbsp;attribute,
 
386
                           <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)
 
387
                    throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></PRE>
 
388
<DL>
 
389
<DD>Parse the cookie attribute and update the corresponsing <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>
 
390
 properties.<DD><DL>
 
391
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#parseAttribute(org.apache.commons.httpclient.NameValuePair, org.apache.commons.httpclient.Cookie)">parseAttribute</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
392
</DD>
 
393
<DD><DL>
 
394
<DT><B>Parameters:</B><DD><CODE>attribute</CODE> - <A HREF="../../../../../org/apache/commons/httpclient/HeaderElement.html"><CODE>HeaderElement</CODE></A> cookie attribute from the
 
395
 <tt>Set- Cookie</tt><DD><CODE>cookie</CODE> - <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> to be updated<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></CODE> - if an exception occurs during parsing</DL>
 
396
</DD>
 
397
</DL>
 
398
<HR>
 
399
 
 
400
<A NAME="validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
401
validate</H3>
 
402
<PRE>
 
403
public void <B>validate</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
404
                     int&nbsp;port,
 
405
                     <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
406
                     boolean&nbsp;secure,
 
407
                     <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)
 
408
              throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></PRE>
 
409
<DL>
 
410
<DD>Performs most common <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> validation<DD><DL>
 
411
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)">validate</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
412
</DD>
 
413
<DD><DL>
 
414
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> was received<DD><CODE>port</CODE> - the port from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> was received<DD><CODE>path</CODE> - the path from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> was received<DD><CODE>secure</CODE> - <tt>true</tt> when the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> was received using a
 
415
 secure connection<DD><CODE>cookie</CODE> - The cookie to validate.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html">MalformedCookieException</A></CODE> - if an exception occurs during
 
416
 validation</DL>
 
417
</DD>
 
418
</DL>
 
419
<HR>
 
420
 
 
421
<A NAME="match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
422
match</H3>
 
423
<PRE>
 
424
public boolean <B>match</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
425
                     int&nbsp;port,
 
426
                     <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
427
                     boolean&nbsp;secure,
 
428
                     <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</PRE>
 
429
<DL>
 
430
<DD>Return <tt>true</tt> if the cookie should be submitted with a request
 
431
 with given attributes, <tt>false</tt> otherwise.<DD><DL>
 
432
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)">match</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
433
</DD>
 
434
<DD><DL>
 
435
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host to which the request is being submitted<DD><CODE>port</CODE> - the port to which the request is being submitted (ignored)<DD><CODE>path</CODE> - the path to which the request is being submitted<DD><CODE>secure</CODE> - <tt>true</tt> if the request is using a secure connection<DD><CODE>cookie</CODE> - <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> to be matched<DT><B>Returns:</B><DD>true if the cookie matches the criterium</DL>
 
436
</DD>
 
437
</DL>
 
438
<HR>
 
439
 
 
440
<A NAME="match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
441
match</H3>
 
442
<PRE>
 
443
public <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[] <B>match</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;host,
 
444
                      int&nbsp;port,
 
445
                      <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A>&nbsp;path,
 
446
                      boolean&nbsp;secure,
 
447
                      <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)</PRE>
 
448
<DL>
 
449
<DD>Return an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s that should be submitted with a
 
450
 request with given attributes, <tt>false</tt> otherwise.<DD><DL>
 
451
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie[])">match</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
452
</DD>
 
453
<DD><DL>
 
454
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host to which the request is being submitted<DD><CODE>port</CODE> - the port to which the request is being submitted (currently
 
455
 ignored)<DD><CODE>path</CODE> - the path to which the request is being submitted<DD><CODE>secure</CODE> - <tt>true</tt> if the request is using a secure protocol<DD><CODE>cookies</CODE> - an array of <tt>Cookie</tt>s to be matched<DT><B>Returns:</B><DD>an array of <tt>Cookie</tt>s matching the criterium</DL>
 
456
</DD>
 
457
</DL>
 
458
<HR>
 
459
 
 
460
<A NAME="formatCookie(org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
461
formatCookie</H3>
 
462
<PRE>
 
463
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>formatCookie</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</PRE>
 
464
<DL>
 
465
<DD>Return a string suitable for sending in a <tt>"Cookie"</tt> header<DD><DL>
 
466
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookie(org.apache.commons.httpclient.Cookie)">formatCookie</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
467
</DD>
 
468
<DD><DL>
 
469
<DT><B>Parameters:</B><DD><CODE>cookie</CODE> - a <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A> to be formatted as string<DT><B>Returns:</B><DD>a string suitable for sending in a <tt>"Cookie"</tt> header.</DL>
 
470
</DD>
 
471
</DL>
 
472
<HR>
 
473
 
 
474
<A NAME="formatCookies(org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
475
formatCookies</H3>
 
476
<PRE>
 
477
public <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>formatCookies</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)
 
478
                     throws <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/IllegalArgumentException.html">IllegalArgumentException</A></PRE>
 
479
<DL>
 
480
<DD>Create a <tt>"Cookie"</tt> header value containing all <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s in
 
481
 <i>cookies</i> suitable for sending in a <tt>"Cookie"</tt> header<DD><DL>
 
482
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookies(org.apache.commons.httpclient.Cookie[])">formatCookies</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
483
</DD>
 
484
<DD><DL>
 
485
<DT><B>Parameters:</B><DD><CODE>cookies</CODE> - an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s to be formatted<DT><B>Returns:</B><DD>a string suitable for sending in a Cookie header.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
486
</DD>
 
487
</DL>
 
488
<HR>
 
489
 
 
490
<A NAME="formatCookieHeader(org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
491
formatCookieHeader</H3>
 
492
<PRE>
 
493
public <A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A> <B>formatCookieHeader</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>[]&nbsp;cookies)</PRE>
 
494
<DL>
 
495
<DD>Create a <tt>"Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> containing all <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s
 
496
 in <i>cookies</i>.<DD><DL>
 
497
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookieHeader(org.apache.commons.httpclient.Cookie[])">formatCookieHeader</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
498
</DD>
 
499
<DD><DL>
 
500
<DT><B>Parameters:</B><DD><CODE>cookies</CODE> - an array of <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>s to be formatted as a <tt>"
 
501
 Cookie"</tt> header<DT><B>Returns:</B><DD>a <tt>"Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A>.</DL>
 
502
</DD>
 
503
</DL>
 
504
<HR>
 
505
 
 
506
<A NAME="formatCookieHeader(org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
507
formatCookieHeader</H3>
 
508
<PRE>
 
509
public <A HREF="../../../../../org/apache/commons/httpclient/Header.html">Header</A> <B>formatCookieHeader</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html">Cookie</A>&nbsp;cookie)</PRE>
 
510
<DL>
 
511
<DD>Create a <tt>"Cookie"</tt> <A HREF="../../../../../org/apache/commons/httpclient/Header.html"><CODE>Header</CODE></A> containing the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html"><CODE>Cookie</CODE></A>.<DD><DL>
 
512
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookieHeader(org.apache.commons.httpclient.Cookie)">formatCookieHeader</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html">CookieSpec</A></CODE></DL>
 
513
</DD>
 
514
<DD><DL>
 
515
<DT><B>Parameters:</B><DD><CODE>cookie</CODE> - <tt>Cookie</tt>s to be formatted as a <tt>Cookie</tt>
 
516
 header<DT><B>Returns:</B><DD>a Cookie header.</DL>
 
517
</DD>
 
518
</DL>
 
519
<!-- ========= END OF CLASS DATA ========= -->
 
520
<HR>
 
521
 
 
522
<!-- ========== START OF NAVBAR ========== -->
 
523
<A NAME="navbar_bottom"><!-- --></A>
 
524
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 
525
<TR>
 
526
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
527
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
528
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 
529
  <TR ALIGN="center" VALIGN="top">
 
530
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
531
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
532
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
533
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CookieSpecBase.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
534
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
535
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
536
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
537
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
538
  </TR>
 
539
</TABLE>
 
540
</TD>
 
541
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
542
</EM>
 
543
</TD>
 
544
</TR>
 
545
 
 
546
<TR>
 
547
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
548
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html"><B>PREV CLASS</B></A>&nbsp;
 
549
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/NetscapeDraftSpec.html"><B>NEXT CLASS</B></A></FONT></TD>
 
550
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
551
  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
 
552
&nbsp;<A HREF="CookieSpecBase.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
 
553
</TR>
 
554
<TR>
 
555
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
556
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
557
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
558
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
559
</TR>
 
560
</TABLE>
 
561
<!-- =========== END OF NAVBAR =========== -->
 
562
 
 
563
<HR>
 
564
Copyright &copy; 2001-2004 Apache Software Foundation. All Rights Reserved.
 
565
</BODY>
 
566
</HTML>