com.khubla.pragmatach.framework.api
Class Cookies

java.lang.Object
  extended by com.khubla.pragmatach.framework.api.Cookies

public class Cookies
extends Object

Author:
tome

Constructor Summary
Cookies(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          ctor
 
Method Summary
 void clearAll()
          clear all cookies
 String getCookie(String name)
          get a cookie by name
 Hashtable<String,String> getCookies()
          get all the cookies
 String getEncryptedCookie(String name)
          get a encrypter cookie by name
 void removeCookie(String name)
          remove a cookie
 void setCookie(String name, String value)
          set a cookie
 void setEncryptedCookie(String name, String value)
          set a cookie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cookies

public Cookies(javax.servlet.http.HttpServletRequest httpServletRequest,
               javax.servlet.http.HttpServletResponse httpServletResponse)
ctor

Method Detail

clearAll

public void clearAll()
              throws PragmatachException
clear all cookies

Throws:
PragmatachException

getCookie

public String getCookie(String name)
                 throws PragmatachException
get a cookie by name

Throws:
PragmatachException

getCookies

public Hashtable<String,String> getCookies()
                                    throws PragmatachException
get all the cookies

Throws:
PragmatachException

getEncryptedCookie

public String getEncryptedCookie(String name)
                          throws PragmatachException
get a encrypter cookie by name

Throws:
PragmatachException

removeCookie

public void removeCookie(String name)
                  throws PragmatachException
remove a cookie

Throws:
PragmatachException

setCookie

public void setCookie(String name,
                      String value)
               throws PragmatachException
set a cookie

Throws:
PragmatachException

setEncryptedCookie

public void setEncryptedCookie(String name,
                               String value)
                        throws PragmatachException
set a cookie

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.