All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
MockHttpRequest |
accept(List<javax.ws.rs.core.MediaType> accepts) |
MockHttpRequest |
accept(javax.ws.rs.core.MediaType accept) |
MockHttpRequest |
accept(String type) |
MockHttpRequest |
addFormHeader(String name,
String value)
Set CONTENT-TYPE to ""application/x-www-form-urlencoded"
|
MockHttpRequest |
content(byte[] bytes) |
MockHttpRequest |
content(InputStream stream) |
MockHttpRequest |
contentType(javax.ws.rs.core.MediaType type) |
MockHttpRequest |
contentType(String type) |
MockHttpRequest |
cookie(String name,
String value) |
static MockHttpRequest |
create(String httpMethod,
String uri) |
static MockHttpRequest |
create(String httpMethod,
String absolute,
String query,
String contextPath) |
static MockHttpRequest |
create(String httpMethod,
URI uriObj,
URI baseUri) |
static MockHttpRequest |
deepCopy(HttpRequest request) |
static MockHttpRequest |
delete(String uri) |
void |
forward(String path) |
static MockHttpRequest |
get(String uri) |
ResteasyAsynchronousContext |
getAsyncContext() |
ResteasyAsynchronousContext |
getAsynchronousContext() |
Object |
getAttribute(String attribute)
Map of contextual data.
|
Enumeration<String> |
getAttributeNames() |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getMutableHeaders() |
String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
ResteasyUriInfo |
getUri()
This method *MUST* always return the same instance.
|
static MockHttpRequest |
head(String uri) |
MockHttpRequest |
header(String name,
String value) |
void |
initialRequestThreadFinished() |
protected static MockHttpRequest |
initWithUri(String uri) |
MockHttpRequest |
language(String language) |
static MockHttpRequest |
options(String uri) |
static MockHttpRequest |
patch(String uri) |
static MockHttpRequest |
post(String uri) |
static MockHttpRequest |
put(String uri) |
void |
removeAttribute(String name) |
void |
setAsynchronousContext(ResteasyAsynchronousContext asynchronousContext) |
void |
setAttribute(String name,
Object value) |
void |
setHttpMethod(String method) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
boolean |
wasForwarded() |