com.partnersoft.net.http
Class HttpRequest

java.lang.Object
  extended by com.partnersoft.net.http.HttpRequest

public class HttpRequest
extends java.lang.Object


Constructor Summary
HttpRequest(HttpMethod method, java.lang.String requestTarget, HttpVersion httpVersion, Naming<java.lang.String> headers, java.lang.String contents)
           
 
Method Summary
 java.lang.String getContents()
           
 java.lang.String getFirstLine()
           
 Naming<java.lang.String> getHeaders()
           
 HttpVersion getHttpVersion()
           
 HttpMethod getMethod()
           
 java.lang.String getRequestTarget()
           
static HttpRequest readFrom(java.io.InputStream innie)
           
static HttpRequest readFrom(java.io.Reader reader)
           
 java.lang.String toString()
           
 void writeTo(java.io.OutputStream output)
           
 void writeTo(java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpRequest

public HttpRequest(HttpMethod method,
                   java.lang.String requestTarget,
                   HttpVersion httpVersion,
                   Naming<java.lang.String> headers,
                   java.lang.String contents)
Method Detail

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