|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use MockRequest | |
|---|---|
| com.uwyn.rife.test | Provides classes and interfaces for the out-of-container testing framework. |
| Uses of MockRequest in com.uwyn.rife.test |
|---|
| Methods in com.uwyn.rife.test that return MockRequest | |
|---|---|
MockRequest |
MockRequest.addDateHeader(String name,
long value)
Adds a request header with the given name and date-value. |
MockRequest |
MockRequest.addHeader(String name,
String value)
Adds a request header with the given name and value. |
MockRequest |
MockRequest.addIntHeader(String name,
int value)
Adds a request header with the given name and integer value. |
MockRequest |
MockRequest.characterEncoding(String encoding)
Set the character encoding of this request. |
MockRequest |
MockRequest.contentType(String type)
Set the content type of this request. |
MockRequest |
MockRequest.dateHeader(String name,
long value)
Sets a request header with the given name and date-value. |
MockRequest |
MockRequest.file(String name,
MockFileUpload file)
Sets a file in this request. |
MockRequest |
MockRequest.files(Map<String,MockFileUpload[]> files)
Sets a map of files in this request. |
MockRequest |
MockRequest.files(String name,
MockFileUpload[] files)
Sets files in this request. |
MockRequest |
MockLink.getRequest()
Creates a new MockRequest that contains the parameters this
link. |
MockRequest |
MockForm.getRequest()
Creates a new MockRequest that contains the method, the
parameters and the files of this form. |
MockRequest |
MockRequest.header(String name,
String value)
Sets a request header with the given name and value. |
MockRequest |
MockRequest.intHeader(String name,
int value)
Sets a request header with the given name and integer value. |
MockRequest |
MockRequest.locale(Locale locale)
Adds a Locale to this request. |
MockRequest |
MockRequest.method(RequestMethod method)
Sets the method of this request. |
MockRequest |
MockRequest.parameter(String name,
String value)
Sets a parameter in this request. |
MockRequest |
MockRequest.parameter(String name,
String[] values)
Sets a parameter in this request. |
MockRequest |
MockRequest.parameters(Map<String,String[]> parameters)
Sets a map of parameters in this request. |
MockRequest |
MockRequest.protocol(String protocol)
Set the protocol of this request. |
MockRequest |
MockRequest.remoteAddr(String remoteAddr)
Set the remote address of this request. |
MockRequest |
MockRequest.remoteHost(String remoteHost)
Set the remote host of this request. |
MockRequest |
MockRequest.remoteUser(String remoteUser)
Set the remote user of this request. |
MockRequest |
MockRequest.secure(boolean secure)
Set whether this request is secure. |
| Methods in com.uwyn.rife.test with parameters of type MockRequest | |
|---|---|
MockResponse |
MockConversation.doRequest(String url,
MockRequest request)
Perform a request for a particular URL and request configuration. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||