org.mule.transport.http
Class HttpRequest
java.lang.Object
org.mule.transport.http.HttpRequest
public class HttpRequest
- extends java.lang.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,
java.io.InputStream content,
java.lang.String defaultEncoding)
throws java.io.IOException
- Throws:
java.io.IOException
HttpRequest
public HttpRequest(RequestLine requestLine,
Header[] headers,
java.lang.String defaultEncoding)
throws java.io.IOException
- Throws:
java.io.IOException
getRequestLine
public RequestLine getRequestLine()
setRequestLine
public void setRequestLine(RequestLine requestline)
containsHeader
public boolean containsHeader(java.lang.String name)
getHeaders
public Header[] getHeaders()
getFirstHeader
public Header getFirstHeader(java.lang.String s)
removeHeaders
public void removeHeaders(java.lang.String s)
addHeader
public void addHeader(Header header)
setHeader
public void setHeader(Header header)
getHeaderIterator
public java.util.Iterator<?> getHeaderIterator()
getContentType
public java.lang.String getContentType()
getCharset
public java.lang.String getCharset()
getContentLength
public long getContentLength()
getBody
public java.io.InputStream getBody()
getBodyBytes
public byte[] getBodyBytes()
throws java.io.IOException
- Throws:
java.io.IOException
getBodyString
public java.lang.String getBodyString()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.