Code example for HttpParams

Methods: setBooleanParameter, setParameter

0
		/** Turn on redirecting using existing parameters or new ones*/ 
		private HttpParams enableRedirecting(HttpParams params) {
			if(params == null)
				params = new BasicHttpParams();
 
			params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
			params.setBooleanParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true); //force circular redirects...
			HttpClientParams.setRedirecting(params, true);
			return params;
		} 
		 
		public void setUsername(String username) {
			this.username = username;
		} 
		 
		public String getUsername() {
			return username;
		} 
		 
		public String getPassword() {
			return password;