// ** This class was generated with DemFGen (vers:06/04/2009) package http.gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import java.net.Socket; import java.net.ServerSocket; import java.io.IOException; import java.io.BufferedReader; import java.io.PrintWriter; import java.io.InputStreamReader; import java.io.InputStream; /** Representation of HeadReq */ public class HeadReq extends HTTPHead{ /** Construct a(n) HeadReq Instance */ public HeadReq(URL url, HTTPVer ver){ super(url, ver); } /** Is the given object Equal to this HeadReq? */ public boolean equals(Object o){ if(!(o instanceof HeadReq))return false; if(o == this)return true; HeadReq oo = (HeadReq)o; return (((Object)url).equals(oo.url))&&(((Object)ver).equals(oo.ver)); } /** Parse an instance of HeadReq from the given String */ public static HeadReq parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_HeadReq(); } /** Parse an instance of HeadReq from the given Stream */ public static HeadReq parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_HeadReq(); } /** Parse an instance of HeadReq from the given Reader */ public static HeadReq parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_HeadReq(); } /** Get the ReqType of this Request */ public HTTPReq.ReqType getType(){ return HTTPReq.ReqType.HEAD; } /** Handle a Request using a ReHandler */ public HTTPResp handle(HTTPReq r, ReqHandler h){ return h.head(r); } /** DGP method from Class PrintToString */ public String toString(){ return http.gen.PrintToString.PrintToStringM(this); } }