protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		int intLevel = 9;
		boolean isNoWrap = Boolean.parseBoolean(request.getParameter("nowrap"));
		boolean isCompress = Boolean.parseBoolean(request.getParameter("compress"));
		boolean isDeflateHeader = true;
		
		try
		{
			 intLevel = Integer.parseInt(request.getParameter("level")) ;
		}
		catch (NumberFormatException nfex)
		{
			intLevel = 9;
		}
		
		if (request.getParameter("isdeflateheader") != null)
			isDeflateHeader = Boolean.parseBoolean(request.getParameter("isdeflateheader"));
		
		String str = "hello world";
		
		byte data[] = str.getBytes();
		
		response.setContentType("text/html");
		
		OutputStream outStream = response.getOutputStream();
		
		if (isCompress)
		{		
			
			if (isDeflateHeader)
				response.setHeader("Content-Encoding", "deflate");	
        
			outStream.write(com.gdssecurity.utils.Compression.deflate(data,intLevel,isNoWrap));
		}
		else
		{
			outStream.write(data);
		}
		
		outStream.close();
         
	}