public class VxWebContext
extends org.noear.solon.boot.web.WebContextBase
| Modifier and Type | Field and Description |
|---|---|
protected org.noear.solon.boot.web.AsyncContextState |
asyncState |
| Constructor and Description |
|---|
VxWebContext(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.buffer.Buffer requestBody) |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncComplete() |
void |
asyncListener(org.noear.solon.core.handle.ContextAsyncListener listener) |
void |
asyncStart(long timeout,
Runnable runnable) |
boolean |
asyncStarted() |
boolean |
asyncSupported() |
String |
body(String charset) |
InputStream |
bodyAsStream() |
void |
close() |
long |
contentLength() |
void |
contentLength(long size) |
protected void |
contentTypeDoSet(String contentType) |
org.noear.solon.core.util.MultiMap<String> |
cookieMap() |
void |
cookieSet(org.noear.solon.core.handle.Cookie cookie) |
org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile> |
fileMap() |
void |
flush() |
void |
headerAdd(String name,
String val) |
org.noear.solon.core.util.MultiMap<String> |
headerMap() |
Collection<String> |
headerNamesOfResponse() |
String |
headerOfResponse(String name) |
void |
headerSet(String name,
String val) |
Collection<String> |
headerValuesOfResponse(String name) |
protected void |
innerCommit() |
protected io.vertx.core.http.HttpServerRequest |
innerGetRequest() |
protected io.vertx.core.http.HttpServerResponse |
innerGetResponse() |
boolean |
isHeadersSent() |
boolean |
isSecure() |
String |
method() |
void |
output(byte[] bytes) |
void |
output(InputStream stream) |
OutputStream |
outputStream() |
org.noear.solon.core.util.MultiMap<String> |
paramMap() |
String |
protocol() |
String |
queryString() |
void |
redirect(String url,
int code) |
String |
remoteIp() |
int |
remotePort() |
Object |
request() |
Object |
response() |
int |
status() |
protected void |
statusDoSet(int status) |
URI |
uri() |
String |
url() |
contentCharset, contentType, filesDelete, outputAsFile, outputAsFile, outputStreamAsGzip, path, session, sessionAsDouble, sessionAsDouble, sessionAsInt, sessionAsInt, sessionAsLong, sessionAsLong, sessionClear, sessionId, sessionOrDefault, sessionRemove, sessionReset, sessionSetaccept, accept, acceptNew, action, asyncStart, attr, attrMap, attrNames, attrOrDefault, attrsClear, attrSet, attrSet, autoMultipart, autoMultipart, body, bodyAsBytes, bodyNew, bodyNew, charset, contentType, contentTypeNew, controller, cookie, cookieNames, cookieOrDefault, cookieRemove, cookieSet, cookieSet, cookieSet, cookieSet, cookieValues, current, file, fileNames, fileValues, forward, getHandled, getLocale, getRendered, header, headerNames, headerOrDefault, headerValues, isFormUrlencoded, isMultipart, isMultipartFormData, mainHandler, output, output, outputAsHtml, outputAsJson, param, paramAsBean, paramAsDecimal, paramAsDecimal, paramAsDouble, paramAsDouble, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramNames, paramOrDefault, paramValues, pathAsLower, pathAsUpper, pathMap, pathNew, pathNew, protocolAsUpper, pull, realIp, redirect, referer, remoting, remotingSet, render, render, renderAndReturn, session, sessionState, sessionState, setHandled, setLocale, setRendered, status, userAgentpublic VxWebContext(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.buffer.Buffer requestBody)
protected io.vertx.core.http.HttpServerRequest innerGetRequest()
protected io.vertx.core.http.HttpServerResponse innerGetResponse()
public boolean isHeadersSent()
isHeadersSent in class org.noear.solon.core.handle.Contextpublic Object request()
request in class org.noear.solon.core.handle.Contextpublic String remoteIp()
remoteIp in class org.noear.solon.core.handle.Contextpublic int remotePort()
remotePort in class org.noear.solon.core.handle.Contextpublic String method()
method in class org.noear.solon.core.handle.Contextpublic String protocol()
protocol in class org.noear.solon.core.handle.Contextpublic URI uri()
uri in class org.noear.solon.core.handle.Contextpublic boolean isSecure()
isSecure in class org.noear.solon.core.handle.Contextpublic String url()
url in class org.noear.solon.core.handle.Contextpublic long contentLength()
contentLength in class org.noear.solon.core.handle.Contextpublic String queryString()
queryString in class org.noear.solon.core.handle.Contextpublic InputStream bodyAsStream() throws IOException
bodyAsStream in class org.noear.solon.core.handle.ContextIOExceptionpublic String body(String charset) throws IOException
body in class org.noear.solon.core.handle.ContextIOExceptionpublic org.noear.solon.core.util.MultiMap<String> paramMap()
paramMap in class org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile> fileMap()
fileMap in class org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<String> cookieMap()
cookieMap in class org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<String> headerMap()
headerMap in class org.noear.solon.core.handle.Contextpublic Object response()
response in class org.noear.solon.core.handle.Contextprotected void contentTypeDoSet(String contentType)
contentTypeDoSet in class org.noear.solon.core.handle.Contextpublic OutputStream outputStream() throws IOException
outputStream in class org.noear.solon.core.handle.ContextIOExceptionpublic void output(byte[] bytes)
output in class org.noear.solon.core.handle.Contextpublic void output(InputStream stream)
output in class org.noear.solon.core.handle.Contextpublic void headerSet(String name, String val)
headerSet in class org.noear.solon.core.handle.Contextpublic void headerAdd(String name, String val)
headerAdd in class org.noear.solon.core.handle.Contextpublic String headerOfResponse(String name)
headerOfResponse in class org.noear.solon.core.handle.Contextpublic Collection<String> headerValuesOfResponse(String name)
headerValuesOfResponse in class org.noear.solon.core.handle.Contextpublic Collection<String> headerNamesOfResponse()
headerNamesOfResponse in class org.noear.solon.core.handle.Contextpublic void cookieSet(org.noear.solon.core.handle.Cookie cookie)
cookieSet in class org.noear.solon.core.handle.Contextpublic void redirect(String url, int code)
redirect in class org.noear.solon.core.handle.Contextpublic int status()
status in class org.noear.solon.core.handle.Contextprotected void statusDoSet(int status)
statusDoSet in class org.noear.solon.core.handle.Contextpublic void contentLength(long size)
contentLength in class org.noear.solon.core.handle.Contextpublic void flush()
throws IOException
flush in class org.noear.solon.core.handle.ContextIOExceptionpublic void close()
throws IOException
close in class org.noear.solon.core.handle.ContextIOExceptionprotected void innerCommit()
throws IOException
innerCommit in class org.noear.solon.boot.web.WebContextBaseIOExceptionpublic boolean asyncSupported()
asyncSupported in class org.noear.solon.core.handle.Contextpublic boolean asyncStarted()
asyncStarted in class org.noear.solon.core.handle.Contextpublic void asyncListener(org.noear.solon.core.handle.ContextAsyncListener listener)
asyncListener in class org.noear.solon.core.handle.Contextpublic void asyncStart(long timeout,
Runnable runnable)
asyncStart in class org.noear.solon.core.handle.Contextpublic void asyncComplete()
asyncComplete in class org.noear.solon.core.handle.ContextCopyright © 2025. All rights reserved.