snichol 2002/07/09 09:30:55 Modified: java/src/org/apache/soap/transport/http SOAPHTTPConnection.java Log: Add accessor and mutator for cookies and cookies2 so that all cookies can be viewed and manipulated. Revision Changes Path 1.24 +44 -0 xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java Index: SOAPHTTPConnection.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- SOAPHTTPConnection.java 25 Jun 2002 21:23:53 -0000 1.23 +++ SOAPHTTPConnection.java 9 Jul 2002 16:30:55 -0000 1.24 @@ -233,6 +233,50 @@ } /** + * Gets the cookies. These are set with each HTTP response, but can be + * altered. <em>Important:</em> this returns the internal array, not + * a copy. + * + * @return The cookies. + */ + public Cookie[] getCookies() { + return cookies; + } + + /** + * Sets the cookies. These will be used for the next HTTP request, but will + * be overwritten based on the response. <em>Important:</em> if improperly + * altered, the connection may lose its association with a session. + * + * @param cookies The cookies. + */ + public void setCookies(Cookie[] cookies) { + this.cookies = cookies; + } + + /** + * Gets the cookie2's. These are set with each HTTP response, but can be + * altered. <em>Important:</em> this returns the internal array, not + * a copy. + * + * @return The cookie2's. + */ + public Cookie[] getCookies2() { + return cookies2; + } + + /** + * Sets the cookie2's. These will be used for the next HTTP request, but will + * be overwritten based on the response. <em>Important:</em> if improperly + * altered, the connection may lose its association with a session. + * + * @param cookies2 The cookie2's. + */ + public void setCookies2(Cookie[] cookies2) { + this.cookies2 = cookies2; + } + + /** * Set the HTTP read timeout. * * @param timeout the amount of time, in ms, to block on reading data.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>