Code example for BasicClientCookie

Methods: setDomain, setPath

0
		client.getParams().setParameter("http.protocol.expect-continue", false);
		client.getParams().setParameter("http.connection.timeout", 10000);
		client.getParams().setParameter("http.socket.timeout", 20000);
		HttpProtocolParams.setUseExpectContinue(client.getParams(), false);
		 
		BasicClientCookie a = new BasicClientCookie("JSESSIONID", session);
		a.setPath("/");
		a.setDomain("http://192.168.10.100");
		cookieStore.addCookie(a);
	} 
	 
	 
	/** 
	 * @MethodName getThreadSafeClient 
	 * @Author     nuKeguyS(2013. 2. 27.) 
	 * @Comment    기존 HttpClient가 할당되어있으면 할당된 client를 반환한다. 
	 *             DefaultHttpClient만 사용하면 SingleClientConnManager: connection still allocated 발생 
	 * @return     DefaultHttpClient 
	 * @return 
	 */ 
	public static DefaultHttpClient getThreadSafeClient()