| Constructor and Description |
|---|
ExContextImpl(io.vertx.core.http.HttpServerRequest rawRequest) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
attr(String key)
属性获取
|
void |
attrSet(String key,
Object value)
属性设置
|
void |
bind(Route route)
绑定路由信息
|
boolean |
isSecure()
是否安全
|
io.vertx.core.net.SocketAddress |
localAddress()
本地地址
|
ExNewRequest |
newRequest()
新的请求构建器
|
ExNewResponse |
newResponse()
新的响应构建器
|
void |
pause()
暂停
|
io.vertx.core.Future<io.vertx.core.buffer.Buffer> |
rawBody()
获取原始主体
|
String |
rawCookie(String key)
获取原始 cookie
|
Set<io.vertx.core.http.Cookie> |
rawCookies()
获取原始所有 cookie
|
String |
rawHeader(String key)
获取原始 header
|
io.vertx.core.MultiMap |
rawHeaders()
获取原始所有 header
|
String |
rawMethod()
获取原始请求方法
|
String |
rawPath()
获取原始路径
|
String |
rawQueryParam(String key)
获取原始查询参数
|
io.vertx.core.MultiMap |
rawQueryParams()
获取原始所有查询参数
|
String |
rawQueryString()
获取原始查询字符串
|
io.vertx.core.http.HttpServerRequest |
rawRequest() |
URI |
rawURI()
获取原始完整请求地址 uri
|
String |
realIp()
客户端真实IP
|
io.vertx.core.net.SocketAddress |
remoteAddress()
远程地址
|
void |
resume()
恢复
|
Route |
route()
路由
|
URI |
target()
路由目标
|
URI |
targetNew()
路由新目标
|
void |
targetNew(URI target)
配置路由新目标
|
TimeoutProperties |
timeout()
路由超时
|
org.noear.solon.core.handle.Context |
toContext()
转为经典上下文接口(不带 req-body)
|
public ExContextImpl(io.vertx.core.http.HttpServerRequest rawRequest)
public io.vertx.core.http.HttpServerRequest rawRequest()
public void bind(Route route)
public Route route()
public TimeoutProperties timeout()
public io.vertx.core.net.SocketAddress remoteAddress()
remoteAddress in interface ExContextpublic io.vertx.core.net.SocketAddress localAddress()
localAddress in interface ExContextpublic String rawQueryString()
rawQueryString in interface ExContextpublic String rawQueryParam(String key)
rawQueryParam in interface ExContextpublic io.vertx.core.MultiMap rawQueryParams()
rawQueryParams in interface ExContextpublic io.vertx.core.MultiMap rawHeaders()
rawHeaders in interface ExContextpublic Set<io.vertx.core.http.Cookie> rawCookies()
rawCookies in interface ExContextpublic io.vertx.core.Future<io.vertx.core.buffer.Buffer> rawBody()
public org.noear.solon.core.handle.Context toContext()
public ExNewRequest newRequest()
newRequest in interface ExContextpublic ExNewResponse newResponse()
newResponse in interface ExContextCopyright © 2025. All rights reserved.