程序包 | 说明 |
---|---|
com.blade.mvc | |
com.blade.mvc.handler | |
com.blade.mvc.hook | |
com.blade.mvc.http | |
com.blade.server.netty |
限定符和类型 | 方法和说明 |
---|---|
Response |
WebContext.getResponse() |
Response |
RouteContext.response()
Get response instance
|
static Response |
WebContext.response()
Get current thread context Response instance
|
限定符和类型 | 方法和说明 |
---|---|
static WebContext |
WebContext.create(Request request,
Response response,
io.netty.channel.ChannelHandlerContext ctx) |
构造器和说明 |
---|
RouteContext(Request request,
Response response) |
WebContext(Request request,
Response response,
io.netty.channel.ChannelHandlerContext channelHandlerContext) |
限定符和类型 | 方法和说明 |
---|---|
void |
RouteHandler0.handle(Request request,
Response response)
已过时。
Route handler
|
protected void |
DefaultExceptionHandler.handleBladeException(BladeException e,
Request request,
Response response) |
protected void |
DefaultExceptionHandler.handleException(Exception e,
Request request,
Response response) |
protected void |
DefaultExceptionHandler.handleValidators(ValidatorException validatorException,
Request request,
Response response) |
protected void |
DefaultExceptionHandler.render500(Request request,
Response response) |
protected void |
DefaultExceptionHandler.renderPage(Response response,
ModelAndView modelAndView) |
限定符和类型 | 方法和说明 |
---|---|
Response |
Signature.response()
已过时。
|
限定符和类型 | 类和说明 |
---|---|
class |
HttpResponse
HttpResponse
|
限定符和类型 | 方法和说明 |
---|---|
default Response |
Response.badRequest()
Set current response http code 400
|
Response |
HttpResponse.body(Body body) |
Response |
Response.body(Body body)
Send body to client
|
Response |
HttpResponse.contentType(String contentType) |
Response |
Response.contentType(String contentType)
Setting Response ContentType
|
Response |
HttpResponse.cookie(Cookie cookie) |
Response |
Response.cookie(Cookie cookie)
add raw response cookie
|
Response |
HttpResponse.cookie(String name,
String value) |
Response |
Response.cookie(String name,
String value)
Add Cookie
|
Response |
HttpResponse.cookie(String name,
String value,
int maxAge) |
Response |
Response.cookie(String name,
String value,
int maxAge)
Setting Cookie
|
Response |
HttpResponse.cookie(String name,
String value,
int maxAge,
boolean secured) |
Response |
Response.cookie(String name,
String value,
int maxAge,
boolean secured)
Setting Cookie
|
Response |
HttpResponse.cookie(String path,
String name,
String value,
int maxAge,
boolean secured) |
Response |
Response.cookie(String path,
String name,
String value,
int maxAge,
boolean secured)
Setting Cookie
|
Response |
HttpResponse.header(String name,
String value) |
Response |
Response.header(String name,
String value)
Set current response header
|
default Response |
Response.notFound()
Set current response http code 404
|
Response |
HttpResponse.removeCookie(String name) |
Response |
Response.removeCookie(String name)
remove cookie
|
Response |
HttpResponse.status(int status) |
Response |
Response.status(int status)
Setting Response Status
|
default Response |
Response.unauthorized()
Set current response http code 401
|
构造器和说明 |
---|
HttpResponse(Response response) |
限定符和类型 | 方法和说明 |
---|---|
io.netty.handler.codec.http.FullHttpResponse |
RouteMethodHandler.handleResponse(Request request,
Response response,
io.netty.channel.ChannelHandlerContext context) |
Void |
RouteMethodHandler.handleStreamResponse(Response response,
InputStream body,
io.netty.channel.ChannelHandlerContext context,
boolean keepAlive) |
Copyright © 2019. All rights reserved.