001 package railo.runtime.type.scope; 002 003 import railo.runtime.exp.PageException; 004 import railo.runtime.type.Collection; 005 import railo.runtime.type.Scope; 006 007 /** 008 * interface for the cookie scope 009 */ 010 public interface Cookie extends Scope { 011 012 /** 013 * set a cookie value 014 * @param name name of the cookie 015 * @param value value of the cookie 016 * @param expires expirs of the cookie (Date, number in seconds or keyword as string ) 017 * @param secure set secure or not 018 * @param path path of the cookie 019 * @param domain domain of the cookie 020 * @throws PageException 021 * @deprecated replaced with <code>setCookie(Collection.Key name, Object value, Object expires, boolean secure, String path, String domain)</code> 022 */ 023 public abstract void setCookie(String name, Object value, Object expires, boolean secure, String path, String domain) throws PageException; 024 025 /** 026 * set a cookie value 027 * @param name name of the cookie 028 * @param value value of the cookie 029 * @param expires expirs of the cookie (Date, number in seconds or keyword as string ) 030 * @param secure set secure or not 031 * @param path path of the cookie 032 * @param domain domain of the cookie 033 * @throws PageException 034 */ 035 public abstract void setCookie(Collection.Key name, Object value, Object expires, boolean secure, String path, String domain) throws PageException; 036 037 /** 038 * set a cookie value 039 * @param name Name of the cookie 040 * @param value value of the cookie 041 * @param expires expires in seconds 042 * @param secure secute or not 043 * @param path path of the cookie 044 * @param domain domain of the cookie 045 * @throws PageException 046 * @deprecated replaced with <code>setCookie(Collection.Key name, Object value, int expires, boolean secure, String path, String domain)</code> 047 */ 048 public abstract void setCookie(String name, Object value, int expires, boolean secure, String path, String domain) 049 throws PageException; 050 051 /** 052 * set a cookie value 053 * @param name Name of the cookie 054 * @param value value of the cookie 055 * @param expires expires in seconds 056 * @param secure secute or not 057 * @param path path of the cookie 058 * @param domain domain of the cookie 059 * @throws PageException 060 */ 061 public abstract void setCookie(Collection.Key name, Object value, int expires, boolean secure, String path, String domain) 062 throws PageException; 063 064 /** 065 * set a cookie value 066 * @param name Name of the cookie 067 * @param value value of the cookie 068 * @param expires expires in seconds 069 * @param secure secute or not 070 * @param path path of the cookie 071 * @param domain domain of the cookie 072 * @deprecated replaced with <code>setCookieEL(Collection.Key name, Object value, int expires, boolean secure, String path, String domain</code> 073 */ 074 public abstract void setCookieEL(String name, Object value, int expires, boolean secure, String path, String domain); 075 076 /** 077 * set a cookie value 078 * @param name Name of the cookie 079 * @param value value of the cookie 080 * @param expires expires in seconds 081 * @param secure secute or not 082 * @param path path of the cookie 083 * @param domain domain of the cookie 084 */ 085 public abstract void setCookieEL(Collection.Key name, Object value, int expires, boolean secure, String path, String domain); 086 087 }