public class HttpRequest extends Object
Constructor and Description |
---|
HttpRequest(RequestLine requestLine,
Header[] headers,
InputStream content,
String defaultEncoding) |
HttpRequest(RequestLine requestLine,
Header[] headers,
String defaultEncoding) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(Header header) |
boolean |
containsHeader(String name) |
InputStream |
getBody() |
byte[] |
getBodyBytes() |
String |
getBodyString() |
String |
getCharset() |
long |
getContentLength() |
String |
getContentType() |
Header |
getFirstHeader(String s) |
Iterator<?> |
getHeaderIterator() |
Header[] |
getHeaders() |
RequestLine |
getRequestLine() |
String |
getUrlWithoutParams() |
void |
removeHeaders(String s) |
void |
setHeader(Header header) |
void |
setRequestLine(RequestLine requestline) |
public HttpRequest(RequestLine requestLine, Header[] headers, String defaultEncoding) throws IOException
IOException
public HttpRequest(RequestLine requestLine, Header[] headers, InputStream content, String defaultEncoding) throws IOException
IOException
public RequestLine getRequestLine()
public void setRequestLine(RequestLine requestline)
public boolean containsHeader(String name)
public Header[] getHeaders()
public void removeHeaders(String s)
public void addHeader(Header header)
public void setHeader(Header header)
public Iterator<?> getHeaderIterator()
public String getContentType()
public String getCharset()
public long getContentLength()
public InputStream getBody()
public byte[] getBodyBytes() throws IOException
IOException
public String getBodyString() throws IOException
IOException
public String getUrlWithoutParams()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.