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 |
CorePlugin.rawInvocation(Http.Request request,
Http.Response response)
Intercept /@status and check that the Authorization header is valid.
|
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 |
DBPlugin.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 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) |
static void |
ActionInvoker.resolve(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,
String contentType) |
Modifier and Type | Method and Description |
---|---|
boolean |
PluginCollection.rawInvocation(Http.Request request,
Http.Response response) |
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,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse) |
static void |
FileService.serve(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,
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,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
static Http.Response |
FunctionalTest.DELETE(Http.Request request,
Object url)
Sends a DELETE request to the application under tests.
|
static Http.Response |
FunctionalTest.DELETE(String url) |
static Http.Response |
FunctionalTest.GET(Http.Request request,
Object url)
sends a GET request to the application under tests.
|
static Http.Response |
FunctionalTest.GET(Object url) |
static Http.Response |
FunctionalTest.GET(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,
Object url) |
static Http.Response |
FunctionalTest.POST(Http.Request request,
Object url,
Map<String,String> parameters,
Map<String,File> files) |
static Http.Response |
FunctionalTest.POST(Http.Request request,
Object url,
String contenttype,
InputStream body)
Sends a POST request to the application under tests.
|
static Http.Response |
FunctionalTest.POST(Http.Request request,
Object url,
String contenttype,
String body) |
static Http.Response |
FunctionalTest.POST(Object url) |
static Http.Response |
FunctionalTest.POST(Object url,
Map<String,String> parameters) |
static Http.Response |
FunctionalTest.POST(Object url,
Map<String,String> parameters,
Map<String,File> files)
Sends a POST request to the application under tests as a multipart form.
|
static Http.Response |
FunctionalTest.POST(Object url,
String contenttype,
InputStream body) |
static Http.Response |
FunctionalTest.POST(Object url,
String contenttype,
String body) |
static Http.Response |
FunctionalTest.PUT(Http.Request request,
Object url,
String contenttype,
String body)
Sends a PUT request to the application under tests.
|
static Http.Response |
FunctionalTest.PUT(Object url,
String contenttype,
String body) |
Modifier and Type | Method and Description |
---|---|
static void |
FunctionalTest.assertCharset(String charset,
Http.Response response)
Verify response charset encoding, as returned by the server in the
Content-Type header.
|
static void |
FunctionalTest.assertContentEquals(String content,
Http.Response response)
Exact equality assertion on response body
|
static void |
FunctionalTest.assertContentMatch(String pattern,
Http.Response response)
Asserts response body matched a pattern or contains some text.
|
static void |
FunctionalTest.assertContentType(String contentType,
Http.Response response)
Verify the response content-type
|
static void |
FunctionalTest.assertHeaderEquals(String headerName,
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 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