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

package edu.neu.ccs.demeterf.http.classes;

import edu.neu.ccs.demeterf.lib.*;
import java.net.Socket;
import java.net.InetSocketAddress;
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 PutReq */
public class PutReq extends HTTPHead{

    /** Construct a(n) PutReq Instance */
    public PutReq(URL url, HTTPVer ver){
        super(url, ver);
    }
    /** Is the given object Equal to this PutReq? */
    public boolean equals(Object o){
        if(!(o instanceof PutReq))return false;
        if(o == this)return true;
        PutReq oo = (PutReq)o;
        return (((Object)url).equals(oo.url))&&(((Object)ver).equals(oo.ver));
    }
    /** Parse an instance of PutReq from the given String */
    public static PutReq parse(String inpt) throws ParseException{
        return new TheParser(new java.io.StringReader(inpt)).parse_PutReq();
    }
    /** Parse an instance of PutReq from the given Stream */
    public static PutReq parse(java.io.InputStream inpt) throws ParseException{
        return new TheParser(inpt).parse_PutReq();
    }
    /** Parse an instance of PutReq from the given Reader */
    public static PutReq parse(java.io.Reader inpt) throws ParseException{
        return new TheParser(inpt).parse_PutReq();
    }


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

    /** DGP method from Class PrintHeapToString */
    public String toString(){ return edu.neu.ccs.demeterf.http.classes.PrintHeapToString.PrintHeapToStringM(this); }
    /** Getter for field PutReq.url */
    public URL getUrl(){ return url; }
    /** Getter for field PutReq.ver */
    public HTTPVer getVer(){ return ver; }

}