List of usage examples for org.apache.commons.httpclient Cookie setPathAttributeSpecified
public void setPathAttributeSpecified(boolean paramBoolean)
From source file:com.hp.alm.ali.rest.client.AliRestClient.java
private void addTenantCookie(Cookie ssoCookie) { if (ssoCookie != null) { Cookie tenant_id_cookie = new Cookie(ssoCookie.getDomain(), "TENANT_ID_COOKIE", "0"); tenant_id_cookie.setDomainAttributeSpecified(true); tenant_id_cookie.setPath(ssoCookie.getPath()); tenant_id_cookie.setPathAttributeSpecified(true); httpClient.getState().addCookie(tenant_id_cookie); }/*from w ww . j a v a 2s . c o m*/ }