// Path: src/com/wings/framework/internal/DynaCall.java
// public class DynaCall {
// 
// 	private DynaCall(){}
// 	
// 	public static void method( String className, String methodName )
// 	{
// 		try
// 		{
// 		Class<?>[] noparams = {};
// 		Class<?> dynaClass = Class.forName( className );
// 		Object object = dynaClass.newInstance();
// 		Method method = dynaClass.getDeclaredMethod( methodName, noparams );
// 		method.invoke(object);
// 		}
// 		catch( Exception e ){ Reporter.error(e); }
// 	}
// 	
// 	public static void newInstance( String className )
// 	{
// 		Class<?> dynaClass;
// 		try{
// 			dynaClass = Class.forName( className );
// 			dynaClass.newInstance();
// 		}catch(Exception e){ Reporter.error(e); }
// 	}
// 
// }
// 
// Path: src/com/wings/framework/internal/File.java
// public class File 
// {
// 
// 	public static ServletContext CONTEXT;
// 
// 	public File( ServletContext context ) 
// 	{
// 		CONTEXT = context;
// 	}
// 
// 	/**
// 	 * This method can be used to read a file in the WEB-INF root folder of this web
// 	 * application. It uses the ServletContext object for accessing these files.
// 	 * 
// 	 * @param path as String for example - "/WEB-INF/config.xml"
// 	 * @return content as String
// 	 * @throws FileError if the File is not Found or can't be read.
// 	 */
// 	public static String read( String path ) throws FileError
// 	{
// 		InputStream inputStream = CONTEXT.getResourceAsStream(path);
// 		InputStreamReader inputStreamReader = null;
// 
// 		try { inputStreamReader = new InputStreamReader(inputStream); }
// 		catch(Exception e) 
// 		{ 
// 			if(inputStreamReader == null) 
// 				throw new FileError("Unable to read " + path + ". Make sure the file exists.");
// 		}
// 		
// 		BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
// 		String line = new String();
// 
// 		try { line = bufferedReader.readLine(); } 
// 		catch (IOException e) { Reporter.error(e); }
// 
// 		String content = new String();
// 
// 		while( line != null ) 
// 		{	
// 			content += line + System.lineSeparator();
// 			try { line = bufferedReader.readLine(); } 
// 			catch (IOException e) { Reporter.error(e);  }
// 		}
// 
// 		try { bufferedReader.close(); } 
// 		catch (IOException e) {	Reporter.error(e); }
// 
// 		return content;
// 	}
// 
// 	
// 	public static boolean exists( String path )
// 	{
// 		java.io.File file = new java.io.File( CONTEXT.getRealPath( path ));
// 		
// 		if( file.exists() ) return true;
// 		else return false;
// 	}
// 	
// 	
// 	public static void create( String path )
// 	{
// 		
// 		
// 	}
// 	
// 	
// }


import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.wings.framework.internal.DynaCall;
import com.wings.framework.internal.File;

// Copyright (c) 2015 Anjul Garg <anjulgarg@live.com>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package com.wings.framework.main;




/**
 * Servlet Filter implementation class WingsFilter
 */
public class WingsFilter implements Filter 
{

	/**
	 * Default constructor. This filter can not be instantiated.
	 */
	public WingsFilter() {}


	/**
	 * @see Filter#destroy()
	 */
	public void destroy() {}


	/**
	 * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)
	 */

// Path: src/com/wings/framework/internal/DynaCall.java
// public class DynaCall {
// 
// 	private DynaCall(){}
// 	
// 	public static void method( String className, String methodName )
// 	{
// 		try
// 		{
// 		Class<?>[] noparams = {};
// 		Class<?> dynaClass = Class.forName( className );
// 		Object object = dynaClass.newInstance();
// 		Method method = dynaClass.getDeclaredMethod( methodName, noparams );
// 		method.invoke(object);
// 		}
// 		catch( Exception e ){ Reporter.error(e); }
// 	}
// 	
// 	public static void newInstance( String className )
// 	{
// 		Class<?> dynaClass;
// 		try{
// 			dynaClass = Class.forName( className );
// 			dynaClass.newInstance();
// 		}catch(Exception e){ Reporter.error(e); }
// 	}
// 
// }
// 
// Path: src/com/wings/framework/internal/File.java
// public class File 
// {
// 
// 	public static ServletContext CONTEXT;
// 
// 	public File( ServletContext context ) 
// 	{
// 		CONTEXT = context;
// 	}
// 
// 	/**
// 	 * This method can be used to read a file in the WEB-INF root folder of this web
// 	 * application. It uses the ServletContext object for accessing these files.
// 	 * 
// 	 * @param path as String for example - "/WEB-INF/config.xml"
// 	 * @return content as String
// 	 * @throws FileError if the File is not Found or can't be read.
// 	 */
// 	public static String read( String path ) throws FileError
// 	{
// 		InputStream inputStream = CONTEXT.getResourceAsStream(path);
// 		InputStreamReader inputStreamReader = null;
// 
// 		try { inputStreamReader = new InputStreamReader(inputStream); }
// 		catch(Exception e) 
// 		{ 
// 			if(inputStreamReader == null) 
// 				throw new FileError("Unable to read " + path + ". Make sure the file exists.");
// 		}
// 		
// 		BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
// 		String line = new String();
// 
// 		try { line = bufferedReader.readLine(); } 
// 		catch (IOException e) { Reporter.error(e); }
// 
// 		String content = new String();
// 
// 		while( line != null ) 
// 		{	
// 			content += line + System.lineSeparator();
// 			try { line = bufferedReader.readLine(); } 
// 			catch (IOException e) { Reporter.error(e);  }
// 		}
// 
// 		try { bufferedReader.close(); } 
// 		catch (IOException e) {	Reporter.error(e); }
// 
// 		return content;
// 	}
// 
// 	
// 	public static boolean exists( String path )
// 	{
// 		java.io.File file = new java.io.File( CONTEXT.getRealPath( path ));
// 		
// 		if( file.exists() ) return true;
// 		else return false;
// 	}
// 	
// 	
// 	public static void create( String path )
// 	{
// 		
// 		
// 	}
// 	
// 	
// }


// Path: src/com/wings/framework/main/WingsFilter.java
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.wings.framework.internal.DynaCall;
import com.wings.framework.internal.File;

// Copyright (c) 2015 Anjul Garg <anjulgarg@live.com>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
package com.wings.framework.main;




/**
 * Servlet Filter implementation class WingsFilter
 */
public class WingsFilter implements Filter 
{

	/**
	 * Default constructor. This filter can not be instantiated.
	 */
	public WingsFilter() {}


	/**
	 * @see Filter#destroy()
	 */
	public void destroy() {}


	/**
	 * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)
	 */

	public void doFilter( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException 
