com.partnersoft.net.http
Class HttpResponse

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

public class HttpResponse
extends java.lang.Object


Constructor Summary
HttpResponse(HttpVersion httpVersion, HttpStatusCode status, 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()
           
 HttpStatusCode getStatus()
           
static HttpResponse readFrom(java.io.InputStream innie)
           
static HttpResponse 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

HttpResponse

public HttpResponse(HttpVersion httpVersion,
                    HttpStatusCode status,
                    Naming<java.lang.String> headers,
                    java.lang.String contents)
Method Detail

getHttpVersion

public HttpVersion getHttpVersion()

getStatus

public HttpStatusCode getStatus()

getHeaders

public Naming<java.lang.String> getHeaders()

getContents

public java.lang.String getContents()

getFirstLine

public java.lang.String getFirstLine()

readFrom

public static HttpResponse readFrom(java.io.Reader reader)
                             throws java.io.IOException,
                                    java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

readFrom

public static HttpResponse 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