Package | Description |
---|---|
play | |
play.db | |
play.mvc | |
play.mvc.results | |
play.plugins | |
play.server | |
play.test |
Modifier and Type | Method and Description |
---|---|
boolean |
PlayPlugin.rawInvocation(Http.Request request,
Http.Response response)
Give a chance to this plugin to fully manage this request
|
boolean |
PlayPlugin.serveStatic(VirtualFile file,
Http.Request request,
Http.Response response)
Let a chance to this plugin to manage a static resource
|
Modifier and Type | Method and Description |
---|---|
boolean |
Evolutions.rawInvocation(Http.Request request,
Http.Response response) |
boolean |
DBBrowserPlugin.rawInvocation(Http.Request request,
Http.Response response) |
Modifier and Type | Field and Description |
---|---|
protected static Http.Response |
Controller.response
The current HTTP response: The message sent back from the server after a request.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<Http.Response> |
Http.Response.current
Bind to thread
|
Modifier and Type | Method and Description |
---|---|
static Http.Response |
Http.Response.current()
Retrieve the current response
|
Modifier and Type | Method and Description |
---|---|
static void |
ActionInvoker.invoke(Http.Request request,
Http.Response response) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketResult.apply(Http.Request request,
Http.Response response) |
void |
Unauthorized.apply(Http.Request request,
Http.Response response) |
void |
Status.apply(Http.Request request,
Http.Response response) |
abstract void |
Result.apply(Http.Request request,
Http.Response response) |
void |
RenderXml.apply(Http.Request request,
Http.Response response) |
void |
RenderText.apply(Http.Request request,
Http.Response response) |
void |
RenderTemplate.apply(Http.Request request,
Http.Response response) |
void |
RenderStatic.apply(Http.Request request,
Http.Response response) |
void |
RenderJson.apply(Http.Request request,
Http.Response response) |
void |
RenderHtml.apply(Http.Request request,
Http.Response response) |
void |
RenderBinary.apply(Http.Request request,
Http.Response response) |
void |
RedirectToStatic.apply(Http.Request request,
Http.Response response) |
void |
Redirect.apply(Http.Request request,
Http.Response response) |
void |
Ok.apply(Http.Request request,
Http.Response response) |
void |
NotModified.apply(Http.Request request,
Http.Response response) |
void |
NotFound.apply(Http.Request request,
Http.Response response) |
void |
NoResult.apply(Http.Request request,
Http.Response response) |
void |
Error.apply(Http.Request request,
Http.Response response) |
protected void |
Result.setContentTypeIfNotSet(Http.Response response,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
boolean |
PluginCollection.rawInvocation(Http.Request request,
Http.Response response) |
boolean |
PlayStatusPlugin.rawInvocation(Http.Request request,
Http.Response response)
Intercept /@status and check that the Authorization header is valid.
|
boolean |
PluginCollection.serveStatic(VirtualFile file,
Http.Request request,
Http.Response response) |
Modifier and Type | Method and Description |
---|---|
protected static void |
PlayHandler.addToResponse(Http.Response response,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse) |
void |
PlayHandler.closeChunked(Http.Request playRequest,
Http.Response playResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
PlayHandler.copyResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
void |
ServletWrapper.copyResponse(Http.Request request,
Http.Response response,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse) |
static void |
FileService.serve(java.io.File localFile,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.channel.Channel channel) |
void |
PlayHandler.serveStatic(RenderStatic renderStatic,
org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.channel.MessageEvent e) |
void |
PlayHandler.writeChunk(Http.Request playRequest,
Http.Response playResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
java.lang.Object chunk) |
protected static void |
PlayHandler.writeResponse(org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Response response,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest) |
Constructor and Description |
---|
NettyInvocation(Http.Request request,
Http.Response response,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.channel.MessageEvent e) |
ServletInvocation(Http.Request request,
Http.Response response,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
static Http.Response |
FunctionalTest.DELETE(Http.Request request,
java.lang.Object url)
Sends a DELETE request to the application under tests.
|
static Http.Response |
FunctionalTest.DELETE(java.lang.String url) |
static Http.Response |
FunctionalTest.GET(Http.Request request,
java.lang.Object url)
Sends a GET request to the application under tests.
|
static Http.Response |
FunctionalTest.GET(java.lang.Object url) |
static Http.Response |
FunctionalTest.GET(java.lang.Object url,
boolean followRedirect)
sends a GET request to the application under tests.
|
static Http.Response |
FunctionalTest.makeRequest(Http.Request request) |
static Http.Response |
FunctionalTest.newResponse() |
static Http.Response |
FunctionalTest.POST(Http.Request request,
java.lang.Object url) |
static Http.Response |
FunctionalTest.POST(Http.Request request,
java.lang.Object url,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,java.io.File> files) |
static Http.Response |
FunctionalTest.POST(Http.Request request,
java.lang.Object url,
java.lang.String contenttype,
java.io.InputStream body)
Sends a POST request to the application under tests.
|
static Http.Response |
FunctionalTest.POST(Http.Request request,
java.lang.Object url,
java.lang.String contenttype,
java.lang.String body) |
static Http.Response |
FunctionalTest.POST(java.lang.Object url) |
static Http.Response |
FunctionalTest.POST(java.lang.Object url,
java.util.Map<java.lang.String,java.lang.String> parameters) |
static Http.Response |
FunctionalTest.POST(java.lang.Object url,
java.util.Map<java.lang.String,java.lang.String> parameters,
java.util.Map<java.lang.String,java.io.File> files)
Sends a POST request to the application under tests as a multipart form.
|
static Http.Response |
FunctionalTest.POST(java.lang.Object url,
java.lang.String contenttype,
java.io.InputStream body) |
static Http.Response |
FunctionalTest.POST(java.lang.Object url,
java.lang.String contenttype,
java.lang.String body) |
static Http.Response |
FunctionalTest.PUT(Http.Request request,
java.lang.Object url,
java.lang.String contenttype,
java.lang.String body)
Sends a PUT request to the application under tests.
|
static Http.Response |
FunctionalTest.PUT(java.lang.Object url,
java.lang.String contenttype,
java.lang.String body) |
Modifier and Type | Method and Description |
---|---|
static void |
FunctionalTest.assertCharset(java.lang.String charset,
Http.Response response)
Verify response charset encoding, as returned by the server in the Content-Type header.
|
static void |
FunctionalTest.assertContentEquals(java.lang.String content,
Http.Response response)
Exact equality assertion on response body
|
static void |
FunctionalTest.assertContentMatch(java.lang.String pattern,
Http.Response response)
Asserts response body matched a pattern or contains some text.
|
static void |
FunctionalTest.assertContentType(java.lang.String contentType,
Http.Response response)
Verify the response content-type
|
static void |
FunctionalTest.assertHeaderEquals(java.lang.String headerName,
java.lang.String value,
Http.Response response)
Exact equality assertion on a response header value
|
static void |
FunctionalTest.assertIsNotFound(Http.Response response)
Asserts a 404 (not found) response
|
static void |
FunctionalTest.assertIsOk(Http.Response response)
Asserts a 2OO Success response
|
static void |
FunctionalTest.assertStatus(int status,
Http.Response response)
Asserts response status code
|
static java.lang.String |
FunctionalTest.getContent(Http.Response response)
obtains the response body as a string
|
static void |
FunctionalTest.makeRequest(Http.Request request,
Http.Response response) |
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly