|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.neu.ccs.demeterf.http.classes.HTTPHead
public abstract class HTTPHead
Representation of HTTPHead
Nested Class Summary | |
---|---|
static class |
HTTPHead.url
Field Class for HTTPHead.url |
static class |
HTTPHead.ver
Field Class for HTTPHead.ver |
Constructor Summary | |
---|---|
HTTPHead(URL url,
HTTPVer ver)
Construct a(n) HTTPHead Instance |
Method Summary | |
---|---|
static HTTPHead |
Get(URL url)
Return a Get Request for the given URL |
HTTPReq.ReqType |
getType()
Get the ReqType of this Request |
abstract URL |
getUrl()
Getter for field HTTPHead.url |
abstract HTTPVer |
getVer()
Getter for field HTTPHead.ver |
HTTPResp |
handle(HTTPReq r,
ReqHandler h)
Handle a Request using a ReHandler |
static HTTPHead |
Head(URL url)
Return a Head Request for the given URL |
static HTTPHead |
parse(java.io.InputStream inpt)
Parse an instance of HTTPHead from the given Stream |
static HTTPHead |
parse(java.io.Reader inpt)
Parse an instance of HTTPHead from the given Reader |
static HTTPHead |
parse(java.lang.String inpt)
Parse an instance of HTTPHead from the given String |
static HTTPHead |
Post(URL url)
Return a Post Request for the given URL |
java.lang.String |
toString()
DGP method from Class PrintToString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTTPHead(URL url, HTTPVer ver)
Method Detail |
---|
public static HTTPHead parse(java.lang.String inpt) throws ParseException
ParseException
public static HTTPHead parse(java.io.InputStream inpt) throws ParseException
ParseException
public static HTTPHead parse(java.io.Reader inpt) throws ParseException
ParseException
public HTTPReq.ReqType getType()
public HTTPResp handle(HTTPReq r, ReqHandler h)
public static HTTPHead Get(URL url)
public static HTTPHead Head(URL url)
public static HTTPHead Post(URL url)
public java.lang.String toString()
toString
in class java.lang.Object
public abstract HTTPVer getVer()
public abstract URL getUrl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |