org.mule.transport.http
Class HttpRequest
java.lang.Object
org.mule.transport.http.HttpRequest
public class HttpRequest
- extends Object
A http request wrapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest
public HttpRequest(RequestLine requestLine,
Header[] headers,
InputStream content)
throws IOException
- Throws:
IOException
HttpRequest
public HttpRequest(RequestLine requestLine,
Header[] headers)
throws IOException
- Throws:
IOException
getRequestLine
public RequestLine getRequestLine()
setRequestLine
public void setRequestLine(RequestLine requestline)
containsHeader
public boolean containsHeader(String name)
getHeaders
public Header[] getHeaders()
getFirstHeader
public Header getFirstHeader(String s)
removeHeaders
public void removeHeaders(String s)
addHeader
public void addHeader(Header header)
setHeader
public void setHeader(Header header)
getHeaderIterator
public Iterator getHeaderIterator()
getContentType
public String getContentType()
getCharset
public String getCharset()
getContentLength
public long getContentLength()
getBody
public InputStream getBody()
getBodyBytes
public byte[] getBodyBytes()
throws IOException
- Throws:
IOException
getBodyString
public String getBodyString()
throws IOException
- Throws:
IOException
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.