Code example for HttpHost

Methods: getHostName, getPort

0
	 * @param password 
	 */ 
	public RestClient(final String username, final String password) {
		this(); 
		httpClient.getCredentialsProvider().setCredentials(
				new AuthScope(targetHost.getHostName(), targetHost.getPort()),
				new UsernamePasswordCredentials(username, password));
 
	} 
 
	public UserDTO createAccount(final String email, final String name, final String description) throws Exception {
		final Map<String, String> params = new HashMap<String, String>();
		params.put("email", email);
		params.put("name", name);
		params.put("description", description);
		return queryServerPost(Constants.REST_PATH + "/account/create", params, new UserDTO());
	} 
 
	public UserDTO resetAccountPassword(final String email) throws Exception {
		final Map<String, String> params = new HashMap<String, String>();
		params.put("email", email);