package com.glezo.htmlWrapper;


import java.util.ArrayList;


public class HtmlWrapperReturn 
{
	private int						return_code;	
	private String					redirects_to;
	private String					content_type;
	private String					raw_return;
	private ArrayList<String>		lines_return;
	private Exception				exception;
	
	
	public HtmlWrapperReturn(int retcode,String redirects_to,String content_type,String raw_return,Exception exception)
	{
		this.return_code	=retcode;
		this.redirects_to	=redirects_to;
		this.content_type	=content_type;
		this.raw_return		=raw_return;
		if(this.raw_return==null)
		{
			this.lines_return=null;
		}
		else
		{
			//lines
			String lines[]=this.raw_return.split("\n");
			this.lines_return=new ArrayList<String>();
			for(int i=0;i<lines.length;i++)
			{
				this.lines_return.add(lines[i]);
			}
		}
		this.exception		=exception;
	}
	public HtmlWrapperReturn(String raw_return,ArrayList<String> lines_return,ArrayList<String> tokens_return,Exception exception)
	{
		this.raw_return		=raw_return;
		this.lines_return	=lines_return;
		this.exception		=exception;
	}
	public int					get_return_code()			{	return this.return_code;			}
	public String				get_redirect_to()			{	return this.redirects_to;			}
	public String				get_content_type()			{	return this.content_type;			}
	public String				get_raw_return()			{	return this.raw_return;				}
	public ArrayList<String>	get_lines_return()			{	return this.lines_return;			}
	public Exception			get_exception()				{	return this.exception;				}
}

@@ -297,16 +297,51 @@
 eption;%0A
+%09private int%09%09%09%09%09%09num_tries_taken;%0A
 %09%0A%09%0A%09pub
@@ -443,32 +443,52 @@
 eption exception
+,int num_tries_taken
 )%0A%09%7B%0A%09%09this.retu
@@ -893,32 +893,72 @@
 on%09%09=exception;%0A
+%09%09this.num_tries_taken=num_tries_taken;%0A
 %09%7D%0A%09public HtmlW
@@ -1599,10 +1599,83 @@
 n;%09%09%09%09%7D%0A
+%09public int%09%09%09%09%09get_num_tries_taken()%09%09%7B%09return this.num_tries_taken;%09%09%7D%0A
 %7D%0A

Update HtmlWrapperReturn.java