public class VxWebContext
extends org.noear.solon.boot.web.WebContextBase
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.noear.solon.boot.web.AsyncContextState |
asyncState |
| 构造器和说明 |
|---|
VxWebContext(io.vertx.core.http.HttpServerRequest request,
io.vertx.core.buffer.Buffer requestBody) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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 Object request()
request 在类中 org.noear.solon.core.handle.Contextpublic String remoteIp()
remoteIp 在类中 org.noear.solon.core.handle.Contextpublic int remotePort()
remotePort 在类中 org.noear.solon.core.handle.Contextpublic String method()
method 在类中 org.noear.solon.core.handle.Contextpublic String protocol()
protocol 在类中 org.noear.solon.core.handle.Contextpublic URI uri()
uri 在类中 org.noear.solon.core.handle.Contextpublic boolean isSecure()
isSecure 在类中 org.noear.solon.core.handle.Contextpublic String url()
url 在类中 org.noear.solon.core.handle.Contextpublic long contentLength()
contentLength 在类中 org.noear.solon.core.handle.Contextpublic String queryString()
queryString 在类中 org.noear.solon.core.handle.Contextpublic InputStream bodyAsStream() throws IOException
bodyAsStream 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic String body(String charset) throws IOException
body 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic org.noear.solon.core.util.MultiMap<String> paramMap()
paramMap 在类中 org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile> fileMap()
fileMap 在类中 org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<String> cookieMap()
cookieMap 在类中 org.noear.solon.core.handle.Contextpublic org.noear.solon.core.util.MultiMap<String> headerMap()
headerMap 在类中 org.noear.solon.core.handle.Contextpublic Object response()
response 在类中 org.noear.solon.core.handle.Contextprotected void contentTypeDoSet(String contentType)
contentTypeDoSet 在类中 org.noear.solon.core.handle.Contextpublic OutputStream outputStream() throws IOException
outputStream 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic void output(byte[] bytes)
output 在类中 org.noear.solon.core.handle.Contextpublic void output(InputStream stream)
output 在类中 org.noear.solon.core.handle.Contextpublic void headerSet(String name, String val)
headerSet 在类中 org.noear.solon.core.handle.Contextpublic void headerAdd(String name, String val)
headerAdd 在类中 org.noear.solon.core.handle.Contextpublic String headerOfResponse(String name)
headerOfResponse 在类中 org.noear.solon.core.handle.Contextpublic Collection<String> headerValuesOfResponse(String name)
headerValuesOfResponse 在类中 org.noear.solon.core.handle.Contextpublic Collection<String> headerNamesOfResponse()
headerNamesOfResponse 在类中 org.noear.solon.core.handle.Contextpublic void cookieSet(org.noear.solon.core.handle.Cookie cookie)
cookieSet 在类中 org.noear.solon.core.handle.Contextpublic void redirect(String url, int code)
redirect 在类中 org.noear.solon.core.handle.Contextpublic int status()
status 在类中 org.noear.solon.core.handle.Contextprotected void statusDoSet(int status)
statusDoSet 在类中 org.noear.solon.core.handle.Contextpublic void contentLength(long size)
contentLength 在类中 org.noear.solon.core.handle.Contextpublic void flush()
throws IOException
flush 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic void close()
throws IOException
close 在类中 org.noear.solon.core.handle.ContextIOExceptionprotected void innerCommit()
throws IOException
innerCommit 在类中 org.noear.solon.boot.web.WebContextBaseIOExceptionpublic boolean asyncSupported()
asyncSupported 在类中 org.noear.solon.core.handle.Contextpublic boolean asyncStarted()
asyncStarted 在类中 org.noear.solon.core.handle.Contextpublic void asyncListener(org.noear.solon.core.handle.ContextAsyncListener listener)
asyncListener 在类中 org.noear.solon.core.handle.Contextpublic void asyncStart(long timeout,
Runnable runnable)
asyncStart 在类中 org.noear.solon.core.handle.Contextpublic void asyncComplete()
asyncComplete 在类中 org.noear.solon.core.handle.ContextCopyright © 2024. All rights reserved.