de.grogra.http
Class Request
java.lang.Object
de.grogra.http.Request
public final class Request
- extends java.lang.Object
Constructor Summary |
Request(java.lang.String method,
java.lang.String uri,
java.lang.String version,
java.util.Map headerFields,
byte[] content)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Request
public Request(java.lang.String method,
java.lang.String uri,
java.lang.String version,
java.util.Map headerFields,
byte[] content)
getContent
public byte[] getContent()
getHeaderField
public java.lang.String getHeaderField(java.lang.String name)
getMethod
public java.lang.String getMethod()
getPath
public java.lang.String getPath()
getQuery
public java.lang.String getQuery()
getURI
public java.lang.String getURI()
getVersion
public java.lang.String getVersion()
parse
public static Request parse(java.io.BufferedInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object