~testplan-team/testplan/source-collection

« back to all changes in this revision

Viewing changes to commons-httpclient-3.1/docs/apidocs/org/apache/commons/httpclient/cookie/CookieSpec.html

  • Committer: edA-qa mort-ora-y
  • Date: 2009-01-28 15:36:51 UTC
  • Revision ID: eda-qa@disemia.com-20090128153651-u4uzd035zyjea16j
adding httpclient

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc (build 1.5.0_11) on Sat Aug 18 11:01:01 CEST 2007 -->
 
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
7
<TITLE>
 
8
CookieSpec (HttpClient 3.1 API)
 
9
</TITLE>
 
10
 
 
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.cookie.CookieSpec interface">
 
12
 
 
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 
14
 
 
15
<SCRIPT type="text/javascript">
 
16
function windowTitle()
 
17
{
 
18
    parent.document.title="CookieSpec (HttpClient 3.1 API)";
 
19
}
 
20
</SCRIPT>
 
21
<NOSCRIPT>
 
22
</NOSCRIPT>
 
23
 
 
24
</HEAD>
 
25
 
 
26
<BODY BGCOLOR="white" onload="windowTitle();">
 
27
 
 
28
 
 
29
<!-- ========= START OF TOP NAVBAR ======= -->
 
30
<A NAME="navbar_top"><!-- --></A>
 
31
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 
32
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
33
<TR>
 
34
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
35
<A NAME="navbar_top_firstrow"><!-- --></A>
 
36
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
37
  <TR ALIGN="center" VALIGN="top">
 
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
40
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CookieSpec.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
46
  </TR>
 
47
</TABLE>
 
48
</TD>
 
49
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
50
</EM>
 
51
</TD>
 
52
</TR>
 
53
 
 
54
<TR>
 
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
56
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html" title="class in org.apache.commons.httpclient.cookie"><B>PREV CLASS</B></A>&nbsp;
 
57
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html" title="class in org.apache.commons.httpclient.cookie"><B>NEXT CLASS</B></A></FONT></TD>
 
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
59
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/cookie/CookieSpec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
60
&nbsp;<A HREF="CookieSpec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
61
&nbsp;<SCRIPT type="text/javascript">
 
62
  <!--
 
63
  if(window==top) {
 
64
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
65
  }
 
66
  //-->
 
67
</SCRIPT>
 
68
<NOSCRIPT>
 
69
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
70
</NOSCRIPT>
 
71
 
 
72
 
 
73
</FONT></TD>
 
74
</TR>
 
75
<TR>
 
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
77
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
79
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
80
</TR>
 
81
</TABLE>
 
82
<A NAME="skip-navbar_top"></A>
 
83
<!-- ========= END OF TOP NAVBAR ========= -->
 
84
 
 
85
<HR>
 
86
<!-- ======== START OF CLASS DATA ======== -->
 
87
<H2>
 
88
<FONT SIZE="-1">
 
89
org.apache.commons.httpclient.cookie</FONT>
 
90
<BR>
 
91
Interface CookieSpec</H2>
 
92
<DL>
 
93
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html" title="class in org.apache.commons.httpclient.cookie">CookieSpecBase</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/IgnoreCookiesSpec.html" title="class in org.apache.commons.httpclient.cookie">IgnoreCookiesSpec</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/NetscapeDraftSpec.html" title="class in org.apache.commons.httpclient.cookie">NetscapeDraftSpec</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/RFC2109Spec.html" title="class in org.apache.commons.httpclient.cookie">RFC2109Spec</A>, <A HREF="../../../../../org/apache/commons/httpclient/cookie/RFC2965Spec.html" title="class in org.apache.commons.httpclient.cookie">RFC2965Spec</A></DD>
 
94
</DL>
 
95
<HR>
 
96
<DL>
 
97
<DT><PRE>public interface <B>CookieSpec</B></DL>
 
98
</PRE>
 
99
 
 
100
<P>
 
101
Defines the cookie management specification.
 
102
 <p>Cookie management specification must define
 
103
 <ul>
 
104
   <li> rules of parsing "Set-Cookie" header
 
105
   <li> rules of validation of parsed cookies
 
106
   <li>  formatting of "Cookie" header 
 
107
 </ul>
 
108
 for a given host, port and path of origin
 
109
<P>
 
110
 
 
111
<P>
 
112
<DL>
 
113
<DT><B>Since:</B></DT>
 
114
  <DD>2.0</DD>
 
115
<DT><B>Author:</B></DT>
 
116
  <DD><a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a>, <a href="mailto:jsdever@apache.org">Jeff Dever</a></DD>
 
117
</DL>
 
118
<HR>
 
119
 
 
120
<P>
 
121
<!-- =========== FIELD SUMMARY =========== -->
 
122
 
 
123
<A NAME="field_summary"><!-- --></A>
 
124
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
125
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
126
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
127
<B>Field Summary</B></FONT></TH>
 
128
</TR>
 
129
<TR BGCOLOR="white" CLASS="TableRowColor">
 
130
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
131
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
132
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#PATH_DELIM">PATH_DELIM</A></B></CODE>
 
133
 
 
134
<BR>
 
135
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Path delimiter</TD>
 
136
</TR>
 
137
<TR BGCOLOR="white" CLASS="TableRowColor">
 
138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
139
<CODE>static&nbsp;char</CODE></FONT></TD>
 
140
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#PATH_DELIM_CHAR">PATH_DELIM_CHAR</A></B></CODE>
 
141
 
 
142
<BR>
 
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Path delimiting charachter</TD>
 
144
</TR>
 
145
</TABLE>
 
146
&nbsp;
 
147
<!-- ========== METHOD SUMMARY =========== -->
 
148
 
 
149
<A NAME="method_summary"><!-- --></A>
 
150
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
152
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
153
<B>Method Summary</B></FONT></TH>
 
154
</TR>
 
155
<TR BGCOLOR="white" CLASS="TableRowColor">
 
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
157
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
158
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#domainMatch(java.lang.String, java.lang.String)">domainMatch</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
159
            <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;domain)</CODE>
 
160
 
 
161
<BR>
 
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs domain-match as defined by the cookie specification.</TD>
 
163
</TR>
 
164
<TR BGCOLOR="white" CLASS="TableRowColor">
 
165
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
166
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
167
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookie(org.apache.commons.httpclient.Cookie)">formatCookie</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</CODE>
 
168
 
 
169
<BR>
 
170
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> header value for an array of cookies.</TD>
 
171
</TR>
 
172
<TR BGCOLOR="white" CLASS="TableRowColor">
 
173
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
174
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A></CODE></FONT></TD>
 
175
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookieHeader(org.apache.commons.httpclient.Cookie)">formatCookieHeader</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</CODE>
 
176
 
 
177
<BR>
 
178
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> Header for single Cookie.</TD>
 
179
</TR>
 
180
<TR BGCOLOR="white" CLASS="TableRowColor">
 
181
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
182
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A></CODE></FONT></TD>
 
183
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookieHeader(org.apache.commons.httpclient.Cookie[])">formatCookieHeader</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)</CODE>
 
184
 
 
185
<BR>
 
186
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> Header for an array of Cookies.</TD>
 
187
</TR>
 
188
<TR BGCOLOR="white" CLASS="TableRowColor">
 
189
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
190
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
191
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#formatCookies(org.apache.commons.httpclient.Cookie[])">formatCookies</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)</CODE>
 
192
 
 
193
<BR>
 
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a <tt>"Cookie"</tt> header value for an array of cookies.</TD>
 
195
</TR>
 
196
<TR BGCOLOR="white" CLASS="TableRowColor">
 
197
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
198
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD>
 
199
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#getValidDateFormats()">getValidDateFormats</A></B>()</CODE>
 
200
 
 
201
<BR>
 
202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util"><CODE>Collection</CODE></A> of date patterns used for parsing.</TD>
 
203
</TR>
 
204
<TR BGCOLOR="white" CLASS="TableRowColor">
 
205
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
206
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
207
<TD><CODE><B><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></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
208
      int&nbsp;port,
 
209
      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
210
      boolean&nbsp;secure,
 
211
      <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</CODE>
 
212
 
 
213
<BR>
 
214
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if a Cookie matches a location.</TD>
 
215
</TR>
 
216
<TR BGCOLOR="white" CLASS="TableRowColor">
 
217
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
218
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]</CODE></FONT></TD>
 
219
<TD><CODE><B><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></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
220
      int&nbsp;port,
 
221
      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
222
      boolean&nbsp;secure,
 
223
      <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)</CODE>
 
224
 
 
225
<BR>
 
226
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines which of an array of Cookies matches a location.</TD>
 
227
</TR>
 
228
<TR BGCOLOR="white" CLASS="TableRowColor">
 
229
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
230
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]</CODE></FONT></TD>
 
231
<TD><CODE><B><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></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
232
      int&nbsp;port,
 
233
      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
234
      boolean&nbsp;secure,
 
235
      <A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A>&nbsp;header)</CODE>
 
236
 
 
237
<BR>
 
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the <tt>"Set-Cookie"</tt> Header into an array of Cookies.</TD>
 
239
</TR>
 
240
<TR BGCOLOR="white" CLASS="TableRowColor">
 
241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
242
<CODE>&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]</CODE></FONT></TD>
 
243
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.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.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
244
      int&nbsp;port,
 
245
      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
246
      boolean&nbsp;secure,
 
247
      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;header)</CODE>
 
248
 
 
249
<BR>
 
250
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the <tt>"Set-Cookie"</tt> header value into Cookie array.</TD>
 
251
</TR>
 
252
<TR BGCOLOR="white" CLASS="TableRowColor">
 
253
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
254
<CODE>&nbsp;void</CODE></FONT></TD>
 
255
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#parseAttribute(org.apache.commons.httpclient.NameValuePair, org.apache.commons.httpclient.Cookie)">parseAttribute</A></B>(<A HREF="../../../../../org/apache/commons/httpclient/NameValuePair.html" title="class in org.apache.commons.httpclient">NameValuePair</A>&nbsp;attribute,
 
256
               <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</CODE>
 
257
 
 
258
<BR>
 
259
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parse the cookie attribute and update the corresponsing Cookie 
 
260
  properties.</TD>
 
261
</TR>
 
262
<TR BGCOLOR="white" CLASS="TableRowColor">
 
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
264
<CODE>&nbsp;boolean</CODE></FONT></TD>
 
265
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#pathMatch(java.lang.String, java.lang.String)">pathMatch</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
266
          <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;topmostPath)</CODE>
 
267
 
 
268
<BR>
 
269
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs path-match as defined by the cookie specification.</TD>
 
270
</TR>
 
271
<TR BGCOLOR="white" CLASS="TableRowColor">
 
272
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
273
<CODE>&nbsp;void</CODE></FONT></TD>
 
274
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#setValidDateFormats(java.util.Collection)">setValidDateFormats</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;datepatterns)</CODE>
 
275
 
 
276
<BR>
 
277
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util"><CODE>Collection</CODE></A> of date patterns used for parsing.</TD>
 
278
</TR>
 
279
<TR BGCOLOR="white" CLASS="TableRowColor">
 
280
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
281
<CODE>&nbsp;void</CODE></FONT></TD>
 
282
<TD><CODE><B><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></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
283
         int&nbsp;port,
 
284
         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
285
         boolean&nbsp;secure,
 
286
         <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</CODE>
 
287
 
 
288
<BR>
 
289
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Validate the cookie according to validation rules defined by the 
 
290
  cookie specification.</TD>
 
291
</TR>
 
292
</TABLE>
 
293
&nbsp;
 
294
<P>
 
295
 
 
296
<!-- ============ FIELD DETAIL =========== -->
 
297
 
 
298
<A NAME="field_detail"><!-- --></A>
 
299
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
300
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
301
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
302
<B>Field Detail</B></FONT></TH>
 
303
</TR>
 
304
</TABLE>
 
305
 
 
306
<A NAME="PATH_DELIM"><!-- --></A><H3>
 
307
PATH_DELIM</H3>
 
308
<PRE>
 
309
static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PATH_DELIM</B></PRE>
 
310
<DL>
 
311
<DD>Path delimiter
 
312
<P>
 
313
<DL>
 
314
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.httpclient.cookie.CookieSpec.PATH_DELIM">Constant Field Values</A></DL>
 
315
</DL>
 
316
<HR>
 
317
 
 
318
<A NAME="PATH_DELIM_CHAR"><!-- --></A><H3>
 
319
PATH_DELIM_CHAR</H3>
 
320
<PRE>
 
321
static final char <B>PATH_DELIM_CHAR</B></PRE>
 
322
<DL>
 
323
<DD>Path delimiting charachter
 
324
<P>
 
325
<DL>
 
326
</DL>
 
327
</DL>
 
328
 
 
329
<!-- ============ METHOD DETAIL ========== -->
 
330
 
 
331
<A NAME="method_detail"><!-- --></A>
 
332
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
333
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
334
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
335
<B>Method Detail</B></FONT></TH>
 
336
</TR>
 
337
</TABLE>
 
338
 
 
339
<A NAME="parse(java.lang.String, int, java.lang.String, boolean, java.lang.String)"><!-- --></A><H3>
 
340
parse</H3>
 
341
<PRE>
 
342
<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[] <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
343
               int&nbsp;port,
 
344
               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
345
               boolean&nbsp;secure,
 
346
               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;header)
 
347
               throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A>,
 
348
                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
349
<DL>
 
350
<DD>Parse the <tt>"Set-Cookie"</tt> header value into Cookie array.
 
351
 
 
352
 <p>This method will not perform the validation of the resultant
 
353
 <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A>s</p>
 
354
<P>
 
355
<DD><DL>
 
356
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host which sent the <tt>Set-Cookie</tt> header<DD><CODE>port</CODE> - the port which sent the <tt>Set-Cookie</tt> header<DD><CODE>path</CODE> - the path which sent the <tt>Set-Cookie</tt> header<DD><CODE>secure</CODE> - <tt>true</tt> when the <tt>Set-Cookie</tt> header 
 
357
  was received over secure conection<DD><CODE>header</CODE> - the <tt>Set-Cookie</tt> received from the server
 
358
<DT><B>Returns:</B><DD>an array of <tt>Cookie</tt>s parsed from the Set-Cookie value
 
359
<DT><B>Throws:</B>
 
360
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A></CODE> - if an exception occurs during parsing
 
361
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><CODE>validate(String, int, String, boolean, Cookie)</CODE></A></DL>
 
362
</DD>
 
363
</DL>
 
364
<HR>
 
365
 
 
366
<A NAME="parse(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Header)"><!-- --></A><H3>
 
367
parse</H3>
 
368
<PRE>
 
369
<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[] <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
370
               int&nbsp;port,
 
371
               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
372
               boolean&nbsp;secure,
 
373
               <A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A>&nbsp;header)
 
374
               throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A>,
 
375
                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
376
<DL>
 
377
<DD>Parse the <tt>"Set-Cookie"</tt> Header into an array of Cookies.
 
378
 
 
379
 <p>This method will not perform the validation of the resultant
 
380
 <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A>s</p>
 
381
<P>
 
382
<DD><DL>
 
383
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host which sent the <tt>Set-Cookie</tt> header<DD><CODE>port</CODE> - the port which sent the <tt>Set-Cookie</tt> header<DD><CODE>path</CODE> - the path which sent the <tt>Set-Cookie</tt> header<DD><CODE>secure</CODE> - <tt>true</tt> when the <tt>Set-Cookie</tt> header 
 
384
  was received over secure conection<DD><CODE>header</CODE> - the <tt>Set-Cookie</tt> received from the server
 
385
<DT><B>Returns:</B><DD>an array of <tt>Cookie</tt>s parsed from the header
 
386
<DT><B>Throws:</B>
 
387
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A></CODE> - if an exception occurs during parsing
 
388
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpec.html#validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><CODE>validate(String, int, String, boolean, Cookie)</CODE></A></DL>
 
389
</DD>
 
390
</DL>
 
391
<HR>
 
392
 
 
393
<A NAME="parseAttribute(org.apache.commons.httpclient.NameValuePair, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
394
parseAttribute</H3>
 
395
<PRE>
 
396
void <B>parseAttribute</B>(<A HREF="../../../../../org/apache/commons/httpclient/NameValuePair.html" title="class in org.apache.commons.httpclient">NameValuePair</A>&nbsp;attribute,
 
397
                    <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)
 
398
                    throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A>,
 
399
                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
400
<DL>
 
401
<DD>Parse the cookie attribute and update the corresponsing Cookie 
 
402
  properties.
 
403
<P>
 
404
<DD><DL>
 
405
<DT><B>Parameters:</B><DD><CODE>attribute</CODE> - cookie attribute from the <tt>Set-Cookie</tt><DD><CODE>cookie</CODE> - the to be updated
 
406
<DT><B>Throws:</B>
 
407
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A></CODE> - if an exception occurs during parsing
 
408
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
409
</DD>
 
410
</DL>
 
411
<HR>
 
412
 
 
413
<A NAME="validate(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
414
validate</H3>
 
415
<PRE>
 
416
void <B>validate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
417
              int&nbsp;port,
 
418
              <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
419
              boolean&nbsp;secure,
 
420
              <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)
 
421
              throws <A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A>,
 
422
                     <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
423
<DL>
 
424
<DD>Validate the cookie according to validation rules defined by the 
 
425
  cookie specification.
 
426
<P>
 
427
<DD><DL>
 
428
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A> was received<DD><CODE>port</CODE> - the port from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A> was received<DD><CODE>path</CODE> - the path from which the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A> was received<DD><CODE>secure</CODE> - <tt>true</tt> when the <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient"><CODE>Cookie</CODE></A> was received 
 
429
  using a secure connection<DD><CODE>cookie</CODE> - the Cookie to validate
 
430
<DT><B>Throws:</B>
 
431
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/cookie/MalformedCookieException.html" title="class in org.apache.commons.httpclient.cookie">MalformedCookieException</A></CODE> - if the cookie is invalid
 
432
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
433
</DD>
 
434
</DL>
 
435
<HR>
 
436
 
 
437
<A NAME="setValidDateFormats(java.util.Collection)"><!-- --></A><H3>
 
438
setValidDateFormats</H3>
 
439
<PRE>
 
440
void <B>setValidDateFormats</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;datepatterns)</PRE>
 
441
<DL>
 
442
<DD>Sets the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util"><CODE>Collection</CODE></A> of date patterns used for parsing. The String patterns must be 
 
443
 compatible with <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" title="class or interface in java.text"><CODE>SimpleDateFormat</CODE></A>.
 
444
<P>
 
445
<DD><DL>
 
446
<DT><B>Parameters:</B><DD><CODE>datepatterns</CODE> - collection of date patterns</DL>
 
447
</DD>
 
448
</DL>
 
449
<HR>
 
450
 
 
451
<A NAME="getValidDateFormats()"><!-- --></A><H3>
 
452
getValidDateFormats</H3>
 
453
<PRE>
 
454
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getValidDateFormats</B>()</PRE>
 
455
<DL>
 
456
<DD>Returns the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util"><CODE>Collection</CODE></A> of date patterns used for parsing. The String patterns are compatible 
 
457
 with the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" title="class or interface in java.text"><CODE>SimpleDateFormat</CODE></A>.
 
458
<P>
 
459
<DD><DL>
 
460
 
 
461
<DT><B>Returns:</B><DD>collection of date patterns</DL>
 
462
</DD>
 
463
</DL>
 
464
<HR>
 
465
 
 
466
<A NAME="match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
467
match</H3>
 
468
<PRE>
 
469
boolean <B>match</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
470
              int&nbsp;port,
 
471
              <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
472
              boolean&nbsp;secure,
 
473
              <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</PRE>
 
474
<DL>
 
475
<DD>Determines if a Cookie matches a location.
 
476
<P>
 
477
<DD><DL>
 
478
<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<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> - the Cookie to be matched
 
479
<DT><B>Returns:</B><DD><tt>true</tt> if the cookie should be submitted with a request 
 
480
  with given attributes, <tt>false</tt> otherwise.</DL>
 
481
</DD>
 
482
</DL>
 
483
<HR>
 
484
 
 
485
<A NAME="match(java.lang.String, int, java.lang.String, boolean, org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
486
match</H3>
 
487
<PRE>
 
488
<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[] <B>match</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
489
               int&nbsp;port,
 
490
               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
491
               boolean&nbsp;secure,
 
492
               <A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)</PRE>
 
493
<DL>
 
494
<DD>Determines which of an array of Cookies matches a location.
 
495
<P>
 
496
<DD><DL>
 
497
<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 
 
498
  (currenlty 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
 
499
<DT><B>Returns:</B><DD><tt>true</tt> if the cookie should be submitted with a request 
 
500
  with given attributes, <tt>false</tt> otherwise.</DL>
 
501
</DD>
 
502
</DL>
 
503
<HR>
 
504
 
 
505
<A NAME="domainMatch(java.lang.String, java.lang.String)"><!-- --></A><H3>
 
506
domainMatch</H3>
 
507
<PRE>
 
508
boolean <B>domainMatch</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;host,
 
509
                    <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;domain)</PRE>
 
510
<DL>
 
511
<DD>Performs domain-match as defined by the cookie specification.
 
512
<P>
 
513
<DD><DL>
 
514
<DT><B>Parameters:</B><DD><CODE>host</CODE> - The target host.<DD><CODE>domain</CODE> - The cookie domain attribute.
 
515
<DT><B>Returns:</B><DD>true if the specified host matches the given domain.<DT><B>Since:</B></DT>
 
516
  <DD>3.0</DD>
 
517
</DL>
 
518
</DD>
 
519
</DL>
 
520
<HR>
 
521
 
 
522
<A NAME="pathMatch(java.lang.String, java.lang.String)"><!-- --></A><H3>
 
523
pathMatch</H3>
 
524
<PRE>
 
525
boolean <B>pathMatch</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;path,
 
526
                  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;topmostPath)</PRE>
 
527
<DL>
 
528
<DD>Performs path-match as defined by the cookie specification.
 
529
<P>
 
530
<DD><DL>
 
531
<DT><B>Parameters:</B><DD><CODE>path</CODE> - The target path.<DD><CODE>topmostPath</CODE> - The cookie path attribute.
 
532
<DT><B>Returns:</B><DD>true if the paths match<DT><B>Since:</B></DT>
 
533
  <DD>3.0</DD>
 
534
</DL>
 
535
</DD>
 
536
</DL>
 
537
<HR>
 
538
 
 
539
<A NAME="formatCookie(org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
540
formatCookie</H3>
 
541
<PRE>
 
542
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatCookie</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)</PRE>
 
543
<DL>
 
544
<DD>Create a <tt>"Cookie"</tt> header value for an array of cookies.
 
545
<P>
 
546
<DD><DL>
 
547
<DT><B>Parameters:</B><DD><CODE>cookie</CODE> - the cookie to be formatted as string
 
548
<DT><B>Returns:</B><DD>a string suitable for sending in a <tt>"Cookie"</tt> header.</DL>
 
549
</DD>
 
550
</DL>
 
551
<HR>
 
552
 
 
553
<A NAME="formatCookies(org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
554
formatCookies</H3>
 
555
<PRE>
 
556
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatCookies</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)
 
557
                     throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
558
<DL>
 
559
<DD>Create a <tt>"Cookie"</tt> header value for an array of cookies.
 
560
<P>
 
561
<DD><DL>
 
562
<DT><B>Parameters:</B><DD><CODE>cookies</CODE> - the Cookies to be formatted
 
563
<DT><B>Returns:</B><DD>a string suitable for sending in a Cookie header.
 
564
<DT><B>Throws:</B>
 
565
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
566
</DD>
 
567
</DL>
 
568
<HR>
 
569
 
 
570
<A NAME="formatCookieHeader(org.apache.commons.httpclient.Cookie[])"><!-- --></A><H3>
 
571
formatCookieHeader</H3>
 
572
<PRE>
 
573
<A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A> <B>formatCookieHeader</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>[]&nbsp;cookies)
 
574
                          throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
575
<DL>
 
576
<DD>Create a <tt>"Cookie"</tt> Header for an array of Cookies.
 
577
<P>
 
578
<DD><DL>
 
579
<DT><B>Parameters:</B><DD><CODE>cookies</CODE> - the Cookies format into a Cookie header
 
580
<DT><B>Returns:</B><DD>a Header for the given Cookies.
 
581
<DT><B>Throws:</B>
 
582
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
583
</DD>
 
584
</DL>
 
585
<HR>
 
586
 
 
587
<A NAME="formatCookieHeader(org.apache.commons.httpclient.Cookie)"><!-- --></A><H3>
 
588
formatCookieHeader</H3>
 
589
<PRE>
 
590
<A HREF="../../../../../org/apache/commons/httpclient/Header.html" title="class in org.apache.commons.httpclient">Header</A> <B>formatCookieHeader</B>(<A HREF="../../../../../org/apache/commons/httpclient/Cookie.html" title="class in org.apache.commons.httpclient">Cookie</A>&nbsp;cookie)
 
591
                          throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
 
592
<DL>
 
593
<DD>Create a <tt>"Cookie"</tt> Header for single Cookie.
 
594
<P>
 
595
<DD><DL>
 
596
<DT><B>Parameters:</B><DD><CODE>cookie</CODE> - the Cookie format as a <tt>Cookie</tt> header
 
597
<DT><B>Returns:</B><DD>a Cookie header.
 
598
<DT><B>Throws:</B>
 
599
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if an input parameter is illegal</DL>
 
600
</DD>
 
601
</DL>
 
602
<!-- ========= END OF CLASS DATA ========= -->
 
603
<HR>
 
604
 
 
605
 
 
606
<!-- ======= START OF BOTTOM NAVBAR ====== -->
 
607
<A NAME="navbar_bottom"><!-- --></A>
 
608
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 
609
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
610
<TR>
 
611
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
612
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
613
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
614
  <TR ALIGN="center" VALIGN="top">
 
615
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
616
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
617
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
618
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CookieSpec.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
619
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
620
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
621
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
622
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
623
  </TR>
 
624
</TABLE>
 
625
</TD>
 
626
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
627
</EM>
 
628
</TD>
 
629
</TR>
 
630
 
 
631
<TR>
 
632
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
633
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookiePolicy.html" title="class in org.apache.commons.httpclient.cookie"><B>PREV CLASS</B></A>&nbsp;
 
634
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/cookie/CookieSpecBase.html" title="class in org.apache.commons.httpclient.cookie"><B>NEXT CLASS</B></A></FONT></TD>
 
635
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
636
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/cookie/CookieSpec.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
637
&nbsp;<A HREF="CookieSpec.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
638
&nbsp;<SCRIPT type="text/javascript">
 
639
  <!--
 
640
  if(window==top) {
 
641
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
642
  }
 
643
  //-->
 
644
</SCRIPT>
 
645
<NOSCRIPT>
 
646
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
647
</NOSCRIPT>
 
648
 
 
649
 
 
650
</FONT></TD>
 
651
</TR>
 
652
<TR>
 
653
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
654
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
655
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
656
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
657
</TR>
 
658
</TABLE>
 
659
<A NAME="skip-navbar_bottom"></A>
 
660
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
661
 
 
662
<HR>
 
663
Copyright &copy; 2001-2007 Apache Software Foundation. All Rights Reserved.
 
664
</BODY>
 
665
</HTML>