// ** This class was generated with DemFGen (vers:11/17/2009)

namespace edu.neu.ccs.demeterf.http.classes{

using edu.neu.ccs.demeterf.lib;
using System.Net.Sockets;
using System.Text;
using System.IO;

using System;



/** Representation of ConnectReq */
public class ConnectReq : HTTPHead{

    /** Construct a(n) ConnectReq Instance */
    public ConnectReq(URL url, HTTPVer ver) : base(url, ver){
    }
    /** Is the given object Equal to this ConnectReq? */
    public override bool Equals(Object o){
        if(!(o is ConnectReq))return false;
        if(o == this)return true;
        ConnectReq oo = (ConnectReq)o;
        return (url.Equals(oo.url))&&(ver.Equals(oo.ver));
    }
    /** Parse an instance of ConnectReq from the given String */
    public static new ConnectReq Parse(String inpt) {
        return new TheParser(new System.IO.StringReader(inpt)).parse_ConnectReq();
    }
    /** Parse an instance of ConnectReq from the given Stream */
    public static new ConnectReq Parse(System.IO.Stream inpt) {
        return new TheParser(inpt).parse_ConnectReq();
    }
    /** Parse an instance of ConnectReq from the given Reader */
    public static new ConnectReq Parse(System.IO.TextReader inpt) {
        return new TheParser(inpt).parse_ConnectReq();
    }


    /** Get the ReqType of this Request */
    public HTTPReq.ReqType getType(){ return HTTPReq.ReqType.CONNECT; }

    /** DGP method from Class PrintToString */
    public override String ToString(){ return global::edu.neu.ccs.demeterf.http.classes.PrintToString.PrintToStringM(this); }
    /** Getter for field ConnectReq.url */
    public override URL GetUrl(){ return url; }
    /** Getter for field ConnectReq.ver */
    public override HTTPVer GetVer(){ return ver; }

}
}