|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.test.FakeRequest
public class FakeRequest
Fake HTTP request implementation.
Constructor Summary | |
---|---|
FakeRequest()
Constructs a new GET / fake request. |
|
FakeRequest(java.lang.String method,
java.lang.String path)
Constructs a new request. |
Method Summary | |
---|---|
play.api.mvc.Request<Http.RequestBody> |
getWrappedRequest()
|
FakeRequest |
withFormUrlEncodedBody(java.util.Map<java.lang.String,java.lang.String> data)
Set a Form url encoded body to this request. |
FakeRequest |
withHeader(java.lang.String name,
java.lang.String value)
Add addtional headers to this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeRequest()
public FakeRequest(java.lang.String method, java.lang.String path)
Method Detail |
---|
public FakeRequest withHeader(java.lang.String name, java.lang.String value)
public FakeRequest withFormUrlEncodedBody(java.util.Map<java.lang.String,java.lang.String> data)
public play.api.mvc.Request<Http.RequestBody> getWrappedRequest()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |