Code example for HttpAuthHandler

Methods: proceed, useHttpAuthUsernamePassword

0
		// 具体的には「:80」が追記されてしまいます。 
 
		String userName = null;
		String userPass = null;
 
		if (handler.useHttpAuthUsernamePassword() && view != null) {
			String[] haup = view.getHttpAuthUsernamePassword(host, realm);
			if (haup != null && haup.length == 2) {
				userName = haup[0];
				userPass = haup[1];
			} 
		} 
 
		if (userName != null && userPass != null) {
			afterSetHttpAuth(userName,userPass);
			handler.proceed(userName, userPass);
		} 
		else { 
			showHttpAuthDialog(handler, host, realm, null);
		} 
	}