cmlenz 2003/06/27 00:20:09
Modified: framework/src/java/share/org/apache/cactus
BaseWebRequest.java
Log:
Minor Javadoc improvement, cosmetics
Revision Changes Path
1.8 +5 -12
jakarta-cactus/framework/src/java/share/org/apache/cactus/BaseWebRequest.java
Index: BaseWebRequest.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/BaseWebRequest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- BaseWebRequest.java 22 Jun 2003 17:02:27 -0000 1.7
+++ BaseWebRequest.java 27 Jun 2003 07:20:09 -0000 1.8
@@ -391,15 +391,9 @@
/**
* Adds a cookie to the request. The cookie will be created with a
- * default localhost domain. Use the
- * <code>addCookie(String theDomain, String theName,
- * String theValue)</code> method or the
- * <code>addCookie(Cookie theCookie)</code> if you wish to specify a
- * domain.
- *
- * Note that the domain must match either the redirector host
- * (specified in <code>cactus.properties</code>) or the host set
- * using <code>setURL()</code>.
+ * default localhost domain. If you need to specify a domain for the cookie,
+ * use the [EMAIL PROTECTED] #addCookie(String, String, String)} method or the
method
+ * [EMAIL PROTECTED] #addCookie(Cookie)}.
*
* @param theName the cookie's name
* @param theValue the cookie's value
@@ -440,8 +434,7 @@
{
if (theCookie == null)
{
- throw new IllegalStateException(
- "The cookie cannot be null");
+ throw new IllegalStateException("The cookie cannot be null");
}
this.cookies.addElement(theCookie);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]