xsul.http_client
Class HttpClientRequest

java.lang.Object
  extended byxsul.http_client.HttpClientRequest

public class HttpClientRequest
extends java.lang.Object

This class represents client-side HTTP request. It is ooptimzied for small memory footprint.

Version:
$Revision: 1.17 $
Author:
Aleksander Slominski

Constructor Summary
HttpClientRequest(ClientSocketConnection conn, HttpClientConnectionManager mgr)
           
 
Method Summary
 void ensureHeadersCapacity(int capacity)
           
 java.io.OutputStream getBodyOutputStream()
           
 HttpClientResponse sendHeaders()
           
 void setConnection(java.lang.String connection)
           
 void setContentType(java.lang.String contentType)
           
 void setHeader(java.lang.String headerName, java.lang.String headerValue)
           
 void setRequestLine(java.lang.String method, java.lang.String requestUri, java.lang.String httpVersion)
           
 void setUserAgent(java.lang.String userAgent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientRequest

public HttpClientRequest(ClientSocketConnection conn,
                         HttpClientConnectionManager mgr)
                  throws HttpClientException
Method Detail

setRequestLine

public void setRequestLine(java.lang.String method,
                           java.lang.String requestUri,
                           java.lang.String httpVersion)
                    throws HttpClientException
Throws:
HttpClientException

setConnection

public void setConnection(java.lang.String connection)
                   throws HttpClientException
Throws:
HttpClientException

setContentType

public void setContentType(java.lang.String contentType)
                    throws HttpClientException
Throws:
HttpClientException

setUserAgent

public void setUserAgent(java.lang.String userAgent)
                  throws HttpClientException
Throws:
HttpClientException

ensureHeadersCapacity

public void ensureHeadersCapacity(int capacity)
                           throws HttpClientException
Throws:
HttpClientException

setHeader

public void setHeader(java.lang.String headerName,
                      java.lang.String headerValue)
               throws HttpClientException
Throws:
HttpClientException

sendHeaders

public HttpClientResponse sendHeaders()
                               throws HttpClientException
Throws:
HttpClientException

getBodyOutputStream

public java.io.OutputStream getBodyOutputStream()
                                         throws HttpClientException
Throws:
HttpClientException


IU Extreme! Lab (http://www.extreme.indiana.edu)