com.partnersoft.net.http
Class HttpRequest
java.lang.Object
com.partnersoft.net.http.HttpRequest
public class HttpRequest
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HttpRequest
public HttpRequest(HttpMethod method,
java.lang.String requestTarget,
HttpVersion httpVersion,
Naming<java.lang.String> headers,
java.lang.String contents)
getMethod
public HttpMethod getMethod()
getRequestTarget
public java.lang.String getRequestTarget()
getHttpVersion
public HttpVersion getHttpVersion()
getHeaders
public Naming<java.lang.String> getHeaders()
getContents
public java.lang.String getContents()
getFirstLine
public java.lang.String getFirstLine()
readFrom
public static HttpRequest readFrom(java.io.Reader reader)
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
readFrom
public static HttpRequest readFrom(java.io.InputStream innie)
throws java.io.IOException,
java.text.ParseException
- Throws:
java.io.IOException
java.text.ParseException
writeTo
public void writeTo(java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
writeTo
public void writeTo(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object