edu.neu.ccs.demeterf.http.classes
Class HeadReq

java.lang.Object
  extended by edu.neu.ccs.demeterf.http.classes.HTTPHead
      extended by edu.neu.ccs.demeterf.http.classes.HeadReq

public class HeadReq
extends HTTPHead

Representation of HeadReq


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.neu.ccs.demeterf.http.classes.HTTPHead
HTTPHead.url, HTTPHead.ver
 
Constructor Summary
HeadReq(URL url, HTTPVer ver)
          Construct a(n) HeadReq Instance
 
Method Summary
 boolean equals(java.lang.Object o)
          Is the given object Equal to this HeadReq?
 HTTPReq.ReqType getType()
          Get the ReqType of this Request
 URL getUrl()
          Getter for field HeadReq.url
 HTTPVer getVer()
          Getter for field HeadReq.ver
 HTTPResp handle(HTTPReq r, ReqHandler h)
          Handle a Request using a ReHandler
static HeadReq parse(java.io.InputStream inpt)
          Parse an instance of HeadReq from the given Stream
static HeadReq parse(java.io.Reader inpt)
          Parse an instance of HeadReq from the given Reader
static HeadReq parse(java.lang.String inpt)
          Parse an instance of HeadReq from the given String
 java.lang.String toString()
          DGP method from Class PrintToString
 
Methods inherited from class edu.neu.ccs.demeterf.http.classes.HTTPHead
Get, Head, Post
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeadReq

public HeadReq(URL url,
               HTTPVer ver)
Construct a(n) HeadReq Instance

Method Detail

equals

public boolean equals(java.lang.Object o)
Is the given object Equal to this HeadReq?

Overrides:
equals in class java.lang.Object

parse

public static HeadReq parse(java.lang.String inpt)
                     throws ParseException
Parse an instance of HeadReq from the given String

Throws:
ParseException

parse

public static HeadReq parse(java.io.InputStream inpt)
                     throws ParseException
Parse an instance of HeadReq from the given Stream

Throws:
ParseException

parse

public static HeadReq parse(java.io.Reader inpt)
                     throws ParseException
Parse an instance of HeadReq from the given Reader

Throws:
ParseException

getType

public HTTPReq.ReqType getType()
Get the ReqType of this Request

Overrides:
getType in class HTTPHead

handle

public HTTPResp handle(HTTPReq r,
                       ReqHandler h)
Handle a Request using a ReHandler

Overrides:
handle in class HTTPHead

toString

public java.lang.String toString()
DGP method from Class PrintToString

Overrides:
toString in class HTTPHead

getUrl

public URL getUrl()
Getter for field HeadReq.url

Specified by:
getUrl in class HTTPHead

getVer

public HTTPVer getVer()
Getter for field HeadReq.ver

Specified by:
getVer in class HTTPHead