com.cassinidivision.core.appserver
Class WOResponse_Cookies

java.lang.Object
  extended bycom.cassinidivision.core.appserver.WOResponse_Cookies

public class WOResponse_Cookies
extends Object

WOResponse utilities (cookie handling-related).


Constructor Summary
WOResponse_Cookies()
           
 
Method Summary
static String cookieStringForPath(String aString)
          Prepend cookie path information to the string provided.
static void setCookieValueWithKey(String aValue, String aKey, WOResponse aResponse)
          Set a cookie value in a HTTP response message (convenience method).
static void setCookieValueWithKeyAndExpiryDate(String aValue, String aKey, NSTimestamp aDate, WOResponse aResponse)
          Set a cookie value in a HTTP response message, set to expire at the given date (convenience method).
static void setCookieValueWithKeyAndExpiryDateAndPath(String aValue, String aKey, NSTimestamp aDate, String aPath, WOResponse aResponse)
          Set a cookie value in a HTTP response message, with the given path and expiry date information (convenience method).
 void setCookieValueWithKeyAndPath(String aValue, String aKey, String aPath, WOResponse aResponse)
          Set a cookie value in a HTTP response message, with the given path information (convenience method).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOResponse_Cookies

public WOResponse_Cookies()
Method Detail

cookieStringForPath

public static String cookieStringForPath(String aString)
Prepend cookie path information to the string provided.

Parameters:
aString - The given string.
Returns:
String with cookie path information prepended.

setCookieValueWithKey

public static void setCookieValueWithKey(String aValue,
                                         String aKey,
                                         WOResponse aResponse)
Set a cookie value in a HTTP response message (convenience method).

Parameters:
aValue - The cookie value.
aKey - The name of the cookie.
aResponse - The response that should include the new cookie details.
See Also:
WOCookie

setCookieValueWithKeyAndExpiryDate

public static void setCookieValueWithKeyAndExpiryDate(String aValue,
                                                      String aKey,
                                                      NSTimestamp aDate,
                                                      WOResponse aResponse)
Set a cookie value in a HTTP response message, set to expire at the given date (convenience method).

Parameters:
aValue - The cookie value.
aKey - The name of the cookie.
aDate - The date when the cookie should expire.
aResponse - The response that should include the new cookie details.
See Also:
WOCookie

setCookieValueWithKeyAndPath

public void setCookieValueWithKeyAndPath(String aValue,
                                         String aKey,
                                         String aPath,
                                         WOResponse aResponse)
Set a cookie value in a HTTP response message, with the given path information (convenience method).

Parameters:
aValue - The cookie value.
aKey - The name of the cookie.
aPath - Path-location details to be included with the cookie details.
aResponse - The response that should include the new cookie details.
See Also:
WOCookie

setCookieValueWithKeyAndExpiryDateAndPath

public static void setCookieValueWithKeyAndExpiryDateAndPath(String aValue,
                                                             String aKey,
                                                             NSTimestamp aDate,
                                                             String aPath,
                                                             WOResponse aResponse)
Set a cookie value in a HTTP response message, with the given path and expiry date information (convenience method).

Parameters:
aValue - The cookie value.
aKey - The name of the cookie.
aDate - The date when the cookie should expire.
aPath - Path-location details to be included with the cookie details.
aResponse - The response that should include the new cookie details.
See Also:
WOCookie