public class HttpRequest extends Object
Constructor and Description |
---|
HttpRequest(HttpMethod method,
String uri) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
Object |
getAttribute(String key)
Retrieves a user-defined attribute of this message.
|
byte[] |
getContent() |
String |
getContentString() |
String |
getHeader(String name) |
Iterable<String> |
getHeaderNames() |
Iterable<String> |
getHeaders(String name) |
HttpMethod |
getMethod() |
String |
getUri() |
void |
removeAttribute(String key) |
void |
removeHeader(String name) |
void |
setAttribute(String key,
Object value) |
void |
setContent(byte[] data) |
void |
setHeader(String name,
String value) |
public HttpRequest(HttpMethod method, String uri)
public String getUri()
public HttpMethod getMethod()
public Object getAttribute(String key)
public void removeAttribute(String key)
public void removeHeader(String name)
public void setContent(byte[] data)
public byte[] getContent()
public String getContentString()
Copyright © 2015. All rights reserved.