Java HTTP Proxy Library Project Page
SourceForge.net Logo

com.wpg.proxy
Class HttpMessageRequest

java.lang.Object
  extended by com.wpg.proxy.HttpMessage
      extended by com.wpg.proxy.HttpMessageRequest

public class HttpMessageRequest
extends HttpMessage

HTTP Request Message Class, this is the message received from the client for processing


Field Summary
 
Fields inherited from class com.wpg.proxy.HttpMessage
body, data, fromHost, fromPort, HEADER_ACCEPT, HEADER_ACCEPT_CHARSET, HEADER_ACCEPT_ENCODING, HEADER_ACCEPT_LANGUAGE, HEADER_CONNECTION, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_DATE, HEADER_KEEP_ALIVE, HEADER_PROXY_CONNECTION, HEADER_REFERER, HEADER_SERVER, HEADER_SET_COOKIE, HEADER_TRANSFER_ENCODING, HEADER_USER_AGENT, headerOrder, headers, isSecure, logger, protocol, protocolVersion, startLine, toHost, toPort
 
Constructor Summary
HttpMessageRequest()
           
 
Method Summary
 java.lang.String getMethod()
          Get the HTTP Method of this request
 java.lang.String getStartLine()
          Get the Request Start Line
 java.net.URI getUri()
          Get the URI of this request
 void setMethod(java.lang.String s)
          Set the HTTP Method of this request, with a String
 void setStartLine(java.lang.String s)
          Set the Start Line of the Message
 void setUri(java.lang.String s)
          Set the URI of this request, from a String
 void setUri(java.net.URI u)
          Set the URI of this request
 
Methods inherited from class com.wpg.proxy.HttpMessage
addHeader, addToBody, getBodyContent, getBodyContentStream, getContentLength, getData, getFromHost, getFromPort, getHeaders, getHeadersAsString, getHeaderValues, getProtocol, getToHost, getToPort, getVersion, isContentLengthSet, setBodyContent, setFromHost, setFromPort, setHeader, setHeaders, setHeaders, setProtocol, setToHost, setToPort, setVersion, updateContentLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMessageRequest

public HttpMessageRequest()
Method Detail

getMethod

public java.lang.String getMethod()
Get the HTTP Method of this request


setMethod

public void setMethod(java.lang.String s)
Set the HTTP Method of this request, with a String


getStartLine

public java.lang.String getStartLine()
Get the Request Start Line

Overrides:
getStartLine in class HttpMessage

setStartLine

public void setStartLine(java.lang.String s)
Set the Start Line of the Message

Specified by:
setStartLine in class HttpMessage

getUri

public java.net.URI getUri()
Get the URI of this request


setUri

public void setUri(java.net.URI u)
            throws java.net.URISyntaxException
Set the URI of this request

Throws:
java.net.URISyntaxException

setUri

public void setUri(java.lang.String s)
            throws java.net.URISyntaxException
Set the URI of this request, from a String

Throws:
java.net.URISyntaxException

Java HTTP Proxy Library Project Page
SourceForge.net Logo