// Path: src/main/java/com/syndicapp/scraper/FSSUserAgent.java
// public class FSSUserAgent {
//     public static HttpClient httpclient = HttpClientBuilder.create().build();
//     public static Logger log = Logger.getLogger(FSSUserAgent.class);
//     public static BasicHttpContext context = new BasicHttpContext();
// 
//     public FSSUserAgent() {
//     }
// 
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/aib/model/AccountDropdownItem.java
// public class AccountDropdownItem
// {
// 
//     public AccountDropdownItem(String accountId, String accountName, String accountBalance)
//     {
//         this.accountId = accountId;
//         this.accountName = accountName;
//         this.accountBalance = accountBalance;
//     }
// 
//     public String getAccountName()
//     {
//         return accountName;
//     }
// 
//     public String getAccountId()
//     {
//         return accountId;
//     }
// 
//     public String getAccountBalance()
//     {
//         return accountBalance;
//     }
// 
//     public void setAccountBalance(String accountBalance)
//     {
//         this.accountBalance = accountBalance;
//     }
// 
//     public void setAccountId(String accountId)
//     {
//         this.accountId = accountId;
//     }
// 
//     public void setAccountName(String accountName)
//     {
//         this.accountName = accountName;
//     }
// 
//     private String accountId;
//     private String accountName;
//     private String accountBalance;
// }
// 
// Path: src/main/java/com/syndicapp/scraper/aib/model/AccountDropdownList.java
// public class AccountDropdownList {
// 	private Vector<AccountDropdownItem> accountDropdownItems;
// 
// 	public AccountDropdownList() {
// 		accountDropdownItems = new Vector<AccountDropdownItem>();
// 	}
// 
// 	public void addAccountDropdownItem(AccountDropdownItem a) {
// 		accountDropdownItems.add(a);
// 	}
// 
// 	public AccountDropdownItem getAccountByName(String name) {
// 		for (Iterator<AccountDropdownItem> itr = accountDropdownItems.iterator(); itr.hasNext();) {
// 			AccountDropdownItem a = (AccountDropdownItem) itr.next();
// 			if (a.getAccountName().equalsIgnoreCase(name))
// 				return a;
// 		}
// 
// 		return null;
// 	}
// 
// 	public AccountDropdownItem getAccountById(String index) {
// 		if (index == null) {
// 			return accountDropdownItems.get(0);
// 		} else {
// 			int i = Integer.parseInt(index);
// 			return accountDropdownItems.get(i);
// 		}
// 	}
// 
// 	public Vector<AccountDropdownItem> getAccountDropdownItems() {
// 		return accountDropdownItems;
// 	}
// 
// 	public void setAccountDropdownItems(Vector<AccountDropdownItem> accountDropdownItems) {
// 		this.accountDropdownItems = accountDropdownItems;
// 	}
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/exception/UnexpectedPageContentsException.java
// public class UnexpectedPageContentsException extends Exception
// {
// 
//     public UnexpectedPageContentsException(String s)
//     {
//         super(s);
//     }
// 
//     private static final long serialVersionUID = 0xf57ed4fa93f8378aL;
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import com.syndicapp.scraper.FSSUserAgent;
import com.syndicapp.scraper.aib.model.AccountDropdownItem;
import com.syndicapp.scraper.aib.model.AccountDropdownList;
import com.syndicapp.scraper.exception.UnexpectedPageContentsException;

// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 17/03/2013 01:04:35
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   TransferToAnotherROIAccountPage.java

package com.syndicapp.scraper.aib;




public class TransferToAnotherROIAccountPage extends FSSUserAgent {

	public TransferToAnotherROIAccountPage() {
	}

	public static HashMap<String, Object> click(String page, HashMap<String, Object> inputParams)
			throws Exception {
		HashMap<String, Object> outputParams = new HashMap<String, Object>();
		String transactionToken = null;
		Pattern p = Pattern
				.compile("id=\"form2\" method=\"post\" action=\"transfersandpaymentslanding.htm\" onsubmit=\"return isClickEnabled\\(\\)\">\\s*<input type=\"hidden\" name=\"transactionToken\" id=\"transactionToken\" value=\"(\\d+)\"/>");
		for (Matcher m = p.matcher(page); m.find();)
			transactionToken = m.group(1);

		HttpPost httppost = new HttpPost(
				"https://aibinternetbanking.aib.ie/inet/roi/transfersandpaymentslanding.htm");
		List<BasicNameValuePair> nvps = new ArrayList<BasicNameValuePair>();

// Path: src/main/java/com/syndicapp/scraper/FSSUserAgent.java
// public class FSSUserAgent {
//     public static HttpClient httpclient = HttpClientBuilder.create().build();
//     public static Logger log = Logger.getLogger(FSSUserAgent.class);
//     public static BasicHttpContext context = new BasicHttpContext();
// 
//     public FSSUserAgent() {
//     }
// 
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/aib/model/AccountDropdownItem.java
// public class AccountDropdownItem
// {
// 
//     public AccountDropdownItem(String accountId, String accountName, String accountBalance)
//     {
//         this.accountId = accountId;
//         this.accountName = accountName;
//         this.accountBalance = accountBalance;
//     }
// 
//     public String getAccountName()
//     {
//         return accountName;
//     }
// 
//     public String getAccountId()
//     {
//         return accountId;
//     }
// 
//     public String getAccountBalance()
//     {
//         return accountBalance;
//     }
// 
//     public void setAccountBalance(String accountBalance)
//     {
//         this.accountBalance = accountBalance;
//     }
// 
//     public void setAccountId(String accountId)
//     {
//         this.accountId = accountId;
//     }
// 
//     public void setAccountName(String accountName)
//     {
//         this.accountName = accountName;
//     }
// 
//     private String accountId;
//     private String accountName;
//     private String accountBalance;
// }
// 
// Path: src/main/java/com/syndicapp/scraper/aib/model/AccountDropdownList.java
// public class AccountDropdownList {
// 	private Vector<AccountDropdownItem> accountDropdownItems;
// 
// 	public AccountDropdownList() {
// 		accountDropdownItems = new Vector<AccountDropdownItem>();
// 	}
// 
// 	public void addAccountDropdownItem(AccountDropdownItem a) {
// 		accountDropdownItems.add(a);
// 	}
// 
// 	public AccountDropdownItem getAccountByName(String name) {
// 		for (Iterator<AccountDropdownItem> itr = accountDropdownItems.iterator(); itr.hasNext();) {
// 			AccountDropdownItem a = (AccountDropdownItem) itr.next();
// 			if (a.getAccountName().equalsIgnoreCase(name))
// 				return a;
// 		}
// 
// 		return null;
// 	}
// 
// 	public AccountDropdownItem getAccountById(String index) {
// 		if (index == null) {
// 			return accountDropdownItems.get(0);
// 		} else {
// 			int i = Integer.parseInt(index);
// 			return accountDropdownItems.get(i);
// 		}
// 	}
// 
// 	public Vector<AccountDropdownItem> getAccountDropdownItems() {
// 		return accountDropdownItems;
// 	}
// 
// 	public void setAccountDropdownItems(Vector<AccountDropdownItem> accountDropdownItems) {
// 		this.accountDropdownItems = accountDropdownItems;
// 	}
// 
// }
// 
// Path: src/main/java/com/syndicapp/scraper/exception/UnexpectedPageContentsException.java
// public class UnexpectedPageContentsException extends Exception
// {
// 
//     public UnexpectedPageContentsException(String s)
//     {
//         super(s);
//     }
// 
//     private static final long serialVersionUID = 0xf57ed4fa93f8378aL;
// }


// Path: src/main/java/com/syndicapp/scraper/aib/TransferToAnotherROIAccountPage.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import com.syndicapp.scraper.FSSUserAgent;
import com.syndicapp.scraper.aib.model.AccountDropdownItem;
import com.syndicapp.scraper.aib.model.AccountDropdownList;
import com.syndicapp.scraper.exception.UnexpectedPageContentsException;

// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 17/03/2013 01:04:35
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   TransferToAnotherROIAccountPage.java

package com.syndicapp.scraper.aib;




public class TransferToAnotherROIAccountPage extends FSSUserAgent {

	public TransferToAnotherROIAccountPage() {
	}

	public static HashMap<String, Object> click(String page, HashMap<String, Object> inputParams)
			throws Exception {
		HashMap<String, Object> outputParams = new HashMap<String, Object>();
		String transactionToken = null;
		Pattern p = Pattern
				.compile("id=\"form2\" method=\"post\" action=\"transfersandpaymentslanding.htm\" onsubmit=\"return isClickEnabled\\(\\)\">\\s*<input type=\"hidden\" name=\"transactionToken\" id=\"transactionToken\" value=\"(\\d+)\"/>");
		for (Matcher m = p.matcher(page); m.find();)
			transactionToken = m.group(1);

		HttpPost httppost = new HttpPost(
				"https://aibinternetbanking.aib.ie/inet/roi/transfersandpaymentslanding.htm");
		List<BasicNameValuePair> nvps = new ArrayList<BasicNameValuePair>();

		nvps.add(new BasicNameValuePair("iBankFormSubmission", "true"));
