package com.ie.ddsi;


import java.io.*;
import java.net.*;
import javax.servlet.http.*;
import org.apache.cocoon.producer.*;
import org.apache.cocoon.framework.*;
import org.w3c.dom.*;
import ie.ddsi.util.*;
import java.sql.*;




public class Testpdf extends AbstractProducer implements Status {

 String testpdf = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
+ "<?xml-stylesheet href=\"test.xsl\" type=\"text/xsl\"?>"

+ "<msa>"
	+ "<participant>"
		+ "<first-name>Arthur</first-name>"
		+ "<middle-name>G</middle-name>"
		+ "<last-name>Tobin</last-name>"
		+ "<address1>Unit 1a</address1>"
		+ "<address2>UTC</address2>"
		+ "<city>Cork</city>"
		+ "<state>MN</state>"
		+ "<zip>54321</zip>"
		+ "<ssn>123-45-6789</ssn>"
	+ "</participant>"
	+ "<employer>"
		+ "<group-name>DDSI Test Group</group-name>"
		+ "<group-address1>3535 Blue Cross Cross Road</group-address1>"
		+ "<group-address2>PO Box 64193</group-address2>"
		+ "<group-city>Minnesota</group-city>"
		+ "<group-state>MN</group-state>"
		+ "<group-zip>434343</group-zip>"
		+ "<group-phone>(800) 859-2144</group-phone>"
	+ "</employer>"
	+ "<accountbalance>"
		+ "<effective-date>02/02/02</effective-date>"
		+ "<hdhp-type>Single</hdhp-type>"
		+ "<hdhp-ded-amt>1400.43</hdhp-ded-amt>"
		+ "<tot-cont-to-acc>5</tot-cont-to-acc>"
		+ "<tot-with-from-acc>4</tot-with-from-acc>"
		+ "<available-bal>650.56</available-bal>"
		+ "<current-plan-year>01/01/01</current-plan-year>"
		+ "<plan-year-con-to-acc>240</plan-year-con-to-acc>"
		+ "<plan-year-with-from-acc>234</plan-year-with-from-acc>"
	+ "</accountbalance>"
	+ "<accountactivity>"
		+ "<date>04/04/2001</date>"
		+ "<cont-to-acct>2000</cont-to-acct>"
		+ "<with-from-acct>200</with-from-acct>"
		+ "<interest-credited>2.10</interest-credited>"
		+ "<transfer-to-invest-comp>100</transfer-to-invest-comp>"
		+ "<transfer-from-invest-comp>300</transfer-from-invest-comp>"
	+ "</accountactivity>"
+ "</msa>";




    public Reader getStream(HttpServletRequest request) throws IOException {
	return new StringReader(testpdf);
    }

    public String getPath(HttpServletRequest request) {
        return "";
    }

    public String getStatus() {
        return "PDF Producer";
    }
}
