com.semarchy.mdm.client
Class CookieCredential

java.lang.Object
  extended by com.semarchy.mdm.client.CookieCredential
All Implemented Interfaces:
IMDMCredential, Serializable

public final class CookieCredential
extends Object
implements IMDMCredential

This IMDMCredential implementation is useful when client is a webapp running inside a servlet container and when single sign-on is configured between this web app and Convergence for MDM web application. Usage :

 
 HttpServletRequest httpServletRequest = ...; // Retrieve a httpServletRequest from client web application
 
 IMDMConnection conn = MDMConnectionFactory.connect(url, new CookieCredential(httpServletRequest.getCookies()));
 
 

Author:
sarod
See Also:
Serialized Form

Constructor Summary
CookieCredential(javax.servlet.http.Cookie[] pCookies)
           
 
Method Summary
 javax.servlet.http.Cookie[] getCookies()
          The cookies that will be propagated
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CookieCredential

public CookieCredential(javax.servlet.http.Cookie[] pCookies)
Method Detail

getCookies

public javax.servlet.http.Cookie[] getCookies()
The cookies that will be propagated

Returns:

toString

public String toString()
Specified by:
toString in interface IMDMCredential
Overrides:
toString in class Object


Copyright © 2015. All Rights Reserved.