Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\lib\int\HTTPClient\doc\api\HTTPClient\Cookie2.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Mon May 07 18:52:24 PDT 2001 --> <TITLE> HTTPClient API: Class Cookie2 </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../HTTPClient/Cookie.html"><B>PREV CLASS</B></A> <A HREF="../HTTPClient/CookieModule.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Cookie2.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> HTTPClient</FONT> <BR> Class Cookie2</H2> <PRE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../HTTPClient/Cookie.html">HTTPClient.Cookie</A> | +--<B>HTTPClient.Cookie2</B> </PRE> <HR> <DL> <DT>public class <B>Cookie2</B><DT>extends <A HREF="../HTTPClient/Cookie.html">Cookie</A></DL> <P> This class represents an http cookie as specified in the <A HREF="http://www.ietf.org/rfc/rfc2965.txt">HTTP State Management Mechanism spec</A> (also known as a version 1 cookie). <P> <DL> <DT><B>Since: </B><DD>V0.3</DD> <DT><B>Version: </B><DD>0.3-3 06/05/2001</DD> <DT><B>Author: </B><DD>Ronald Tschal?</DD> <DT><B>See Also: </B><DD><A HREF="../serialized-form.html#HTTPClient.Cookie2">Serialized Form</A></DL> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#comment">comment</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../HTTPClient/URI.html">URI</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#comment_url">comment_url</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#discard">discard</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#domain_set">domain_set</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#path_set">path_set</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected int[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#port_list">port_list</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#port_list_str">port_list_str</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#port_set">port_set</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected int</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#version">version</A></B></CODE> <BR> </TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_HTTPClient.Cookie"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from class HTTPClient.<A HREF="../HTTPClient/Cookie.html">Cookie</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../HTTPClient/Cookie.html#domain">domain</A>, <A HREF="../HTTPClient/Cookie.html#expires">expires</A>, <A HREF="../HTTPClient/Cookie.html#name">name</A>, <A HREF="../HTTPClient/Cookie.html#path">path</A>, <A HREF="../HTTPClient/Cookie.html#secure">secure</A>, <A HREF="../HTTPClient/Cookie.html#value">value</A></CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected </CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#Cookie2(HTTPClient.RoRequest)">Cookie2</A></B>(<A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req)</CODE> <BR> Use <code>parse()</code> to create cookies.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> </CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#Cookie2(java.lang.String, java.lang.String, java.lang.String, int[], java.lang.String, java.util.Date, boolean, boolean, java.lang.String, HTTPClient.URI)">Cookie2</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> name, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> value, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> domain, int[] port_list, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> path, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/util/Date.html">Date</A> expires, boolean discard, boolean secure, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> comment, <A HREF="../HTTPClient/URI.html">URI</A> comment_url)</CODE> <BR> Create a cookie.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#discard()">discard</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#getComment()">getComment</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../HTTPClient/URI.html">URI</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#getCommentURL()">getCommentURL</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#getPorts()">getPorts</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#getVersion()">getVersion</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected static <A HREF="../HTTPClient/Cookie.html">Cookie</A>[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#parse(java.lang.String, HTTPClient.RoRequest)">parse</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> set_cookie, <A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req)</CODE> <BR> Parses the Set-Cookie2 header into an array of Cookies.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#sendWith(HTTPClient.RoRequest)">sendWith</A></B>(<A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req)</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#toExternalForm()">toExternalForm</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/Cookie2.html#toString()">toString</A></B>()</CODE> <BR> Create a string containing all the cookie fields.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_HTTPClient.Cookie"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class HTTPClient.<A HREF="../HTTPClient/Cookie.html">Cookie</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../HTTPClient/Cookie.html#equals(java.lang.Object)">equals</A>, <A HREF="../HTTPClient/Cookie.html#expires()">expires</A>, <A HREF="../HTTPClient/Cookie.html#getDomain()">getDomain</A>, <A HREF="../HTTPClient/Cookie.html#getName()">getName</A>, <A HREF="../HTTPClient/Cookie.html#getPath()">getPath</A>, <A HREF="../HTTPClient/Cookie.html#getValue()">getValue</A>, <A HREF="../HTTPClient/Cookie.html#hasExpired()">hasExpired</A>, <A HREF="../HTTPClient/Cookie.html#hashCode()">hashCode</A>, <A HREF="../HTTPClient/Cookie.html#isSecure()">isSecure</A></CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="version"><!-- --></A><H3> version</H3> <PRE> protected int <B>version</B></PRE> <DL> </DL> <HR> <A NAME="discard"><!-- --></A><H3> discard</H3> <PRE> protected boolean <B>discard</B></PRE> <DL> </DL> <HR> <A NAME="comment"><!-- --></A><H3> comment</H3> <PRE> protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>comment</B></PRE> <DL> </DL> <HR> <A NAME="comment_url"><!-- --></A><H3> comment_url</H3> <PRE> protected <A HREF="../HTTPClient/URI.html">URI</A> <B>comment_url</B></PRE> <DL> </DL> <HR> <A NAME="port_list"><!-- --></A><H3> port_list</H3> <PRE> protected int[] <B>port_list</B></PRE> <DL> </DL> <HR> <A NAME="port_list_str"><!-- --></A><H3> port_list_str</H3> <PRE> protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>port_list_str</B></PRE> <DL> </DL> <HR> <A NAME="path_set"><!-- --></A><H3> path_set</H3> <PRE> protected boolean <B>path_set</B></PRE> <DL> </DL> <HR> <A NAME="port_set"><!-- --></A><H3> port_set</H3> <PRE> protected boolean <B>port_set</B></PRE> <DL> </DL> <HR> <A NAME="domain_set"><!-- --></A><H3> domain_set</H3> <PRE> protected boolean <B>domain_set</B></PRE> <DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="Cookie2(java.lang.String, java.lang.String, java.lang.String, int[], java.lang.String, java.util.Date, boolean, boolean, java.lang.String, HTTPClient.URI)"><!-- --></A><H3> Cookie2</H3> <PRE> public <B>Cookie2</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> name, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> value, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> domain, int[] port_list, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> path, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/util/Date.html">Date</A> expires, boolean discard, boolean secure, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> comment, <A HREF="../HTTPClient/URI.html">URI</A> comment_url)</PRE> <DL> <DD>Create a cookie.<DD><DL> <DT><B>Parameters:</B><DD><CODE>name</CODE> - the cookie name<DD><CODE>value</CODE> - the cookie value<DD><CODE>domain</CODE> - the host this cookie will be sent to<DD><CODE>port_list</CODE> - an array of allowed server ports for this cookie, or null if the the cookie may be sent to any port<DD><CODE>path</CODE> - the path prefix for which this cookie will be sent<DD><CODE>epxires</CODE> - the Date this cookie expires, or null if never<DD><CODE>discard</CODE> - if true then the cookie will be discarded at the end of the session regardless of expiry<DD><CODE>secure</CODE> - if true this cookie will only be over secure connections<DD><CODE>comment</CODE> - the comment associated with this cookie, or null if none<DD><CODE>comment_url</CODE> - the comment URL associated with this cookie, or null if none<DT><B>Throws:</B><DD>NullPointerException - if <var>name</var>, <var>value</var>, <var>domain</var>, or <var>path</var> is null</DL> </DD> </DL> <HR> <A NAME="Cookie2(HTTPClient.RoRequest)"><!-- --></A><H3> Cookie2</H3> <PRE> protected <B>Cookie2</B>(<A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req)</PRE> <DL> <DD>Use <code>parse()</code> to create cookies.<DD><DL> <DT><B>See Also: </B><DD><A HREF="../HTTPClient/Cookie2.html#parse(java.lang.String, HTTPClient.RoRequest)"><CODE>parse(java.lang.String, HTTPClient.RoRequest)</CODE></A></DL> </DD> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="parse(java.lang.String, HTTPClient.RoRequest)"><!-- --></A><H3> parse</H3> <PRE> protected static <A HREF="../HTTPClient/Cookie.html">Cookie</A>[] <B>parse</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> set_cookie, <A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req) throws <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/net/ProtocolException.html">ProtocolException</A></PRE> <DL> <DD>Parses the Set-Cookie2 header into an array of Cookies.<DD><DL> <DT><B>Parameters:</B><DD><CODE>set_cookie</CODE> - the Set-Cookie2 header received from the server<DD><CODE>req</CODE> - the request used<DT><B>Returns:</B><DD>an array of Cookies as parsed from the Set-Cookie2 header<DT><B>Throws:</B><DD><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/net/ProtocolException.html">ProtocolException</A> - if an error occurs during parsing</DL> </DD> </DL> <HR> <A NAME="getVersion()"><!-- --></A><H3> getVersion</H3> <PRE> public int <B>getVersion</B>()</PRE> <DL> <DD><DL> <DT><B>Returns:</B><DD>the version as an int</DL> </DD> </DL> <HR> <A NAME="getComment()"><!-- --></A><H3> getComment</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>getComment</B>()</PRE> <DL> <DD><DL> <DT><B>Returns:</B><DD>the comment string, or null if none was set</DL> </DD> </DL> <HR> <A NAME="getCommentURL()"><!-- --></A><H3> getCommentURL</H3> <PRE> public <A HREF="../HTTPClient/URI.html">URI</A> <B>getCommentURL</B>()</PRE> <DL> <DD><DL> <DT><B>Returns:</B><DD>the comment url</DL> </DD> </DL> <HR> <A NAME="getPorts()"><!-- --></A><H3> getPorts</H3> <PRE> public int[] <B>getPorts</B>()</PRE> <DL> <DD><DL> <DT><B>Returns:</B><DD>the array of ports</DL> </DD> </DL> <HR> <A NAME="discard()"><!-- --></A><H3> discard</H3> <PRE> public boolean <B>discard</B>()</PRE> <DL> <DD><DL> <DT><B>Overrides:</B><DD><A HREF="../HTTPClient/Cookie.html#discard()">discard</A> in class <A HREF="../HTTPClient/Cookie.html">Cookie</A></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>true if the cookie should be discarded at the end of the session; false otherwise</DL> </DD> </DL> <HR> <A NAME="sendWith(HTTPClient.RoRequest)"><!-- --></A><H3> sendWith</H3> <PRE> protected boolean <B>sendWith</B>(<A HREF="../HTTPClient/RoRequest.html">RoRequest</A> req)</PRE> <DL> <DD><DL> <DT><B>Overrides:</B><DD><A HREF="../HTTPClient/Cookie.html#sendWith(HTTPClient.RoRequest)">sendWith</A> in class <A HREF="../HTTPClient/Cookie.html">Cookie</A></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>req</CODE> - the request to be sent<DT><B>Returns:</B><DD>true if this cookie should be sent with the request</DL> </DD> </DL> <HR> <A NAME="toExternalForm()"><!-- --></A><H3> toExternalForm</H3> <PRE> protected <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>toExternalForm</B>()</PRE> <DL> <DD><DL> <DT><B>Overrides:</B><DD><A HREF="../HTTPClient/Cookie.html#toExternalForm()">toExternalForm</A> in class <A HREF="../HTTPClient/Cookie.html">Cookie</A></DL> </DD> <DD><B>Tags copied from class: <A HREF="../HTTPClient/Cookie.html">Cookie</A></B></DD> <DD><DL> <DT><B>Returns:</B><DD>a string suitable for sending in a Cookie header.</DL> </DD> </DL> <HR> <A NAME="toString()"><!-- --></A><H3> toString</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE> <DL> <DD>Create a string containing all the cookie fields. The format is that used in the Set-Cookie header.<DD><DL> <DT><B>Overrides:</B><DD><A HREF="../HTTPClient/Cookie.html#toString()">toString</A> in class <A HREF="../HTTPClient/Cookie.html">Cookie</A></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../HTTPClient/Cookie.html"><B>PREV CLASS</B></A> <A HREF="../HTTPClient/CookieModule.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Cookie2.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de