Example usage for org.apache.commons.httpclient Cookie setPathAttributeSpecified

List of usage examples for org.apache.commons.httpclient Cookie setPathAttributeSpecified

Introduction

In this page you can find the example usage for org.apache.commons.httpclient Cookie setPathAttributeSpecified.

Prototype

public void setPathAttributeSpecified(boolean paramBoolean) 

Source Link

Usage

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*/
}