package classes.matuto.core
{
	
	/*
		

		Objeto responsavel pelos 
		urls que vel do browser.
		
		autor: gustavo cosme
		data:  18/maio/2011
	
	*/
	
	public class URLInfo extends Object
	{
		
		private var raw		: Array;
		
		private var array	:Array = [];
		
		
		public function URLInfo(_raw:Array)
		{
			
			super();
			
			raw = _raw;
			
			if(raw.length>=2)
			{			
				for(var i:int = 2; i<raw.length; i++)
				{
				    array.push(raw[i]);	
				}
			}
			
		}
		
		public function get getModulo():String
		{
		   return raw[1];
		}
		
		public function get getMetodo():String
		{
			return raw[2];
		}
		
		public function set setParams(value:Array):void
		{
			
			array = value;
		
			return;
		}
		
		public function get getParams():Array
		{
			return array;
		}
		
		public function get getParamText():String
		{
			var t:String  = array.toString();	
			var t2:String = t.split(',').join('/');
			return t2;
		}
		
		
		
		
	}//end class
}