|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.utils.CookieCutter
CookieCutter is a utility class which stores, sends and receives cookies for a CWebProxy channel instance. It can be used in other classes where appropriate. All cookies which are sent from the proxied application (and therefore need to be sent back) are kept in a Vector.
Constructor Summary | |
CookieCutter()
Instantiates a new CookieCutter object. |
Method Summary | |
boolean |
cookiesExist()
Returns true if cookies need to be sent to proxied application. |
void |
sendCookieHeader(java.net.HttpURLConnection httpUrlConnect,
java.lang.String domain,
java.lang.String path,
java.lang.String port)
Sends a cookie header to origin server according to the Netscape specification. |
void |
storeCookieHeader(java.net.HttpURLConnection httpUrlConnect,
java.lang.String domain,
java.lang.String path,
java.lang.String port)
Parses the cookie headers and stores the cookies in the cookies Vector. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CookieCutter()
Method Detail |
public boolean cookiesExist()
public void sendCookieHeader(java.net.HttpURLConnection httpUrlConnect, java.lang.String domain, java.lang.String path, java.lang.String port)
httpUrlConnect
- The HttpURLConnection handling this URL connectiondomain
- The domain value of the cookiepath
- The path value of the cookieport
- The port value of the cookiepublic void storeCookieHeader(java.net.HttpURLConnection httpUrlConnect, java.lang.String domain, java.lang.String path, java.lang.String port)
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |