public class SolonServletContext
extends org.noear.solon.boot.web.WebContextBase
| 构造器和说明 |
|---|
SolonServletContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncComplete() |
void |
asyncStart(long timeout,
org.noear.solon.core.handle.ContextAsyncListener listener) |
boolean |
asyncSupported() |
InputStream |
bodyAsStream() |
void |
charset(String charset) |
void |
close() |
long |
contentLength() |
String |
contentType() |
protected void |
contentTypeDoSet(String contentType) |
org.noear.solon.core.NvMap |
cookieMap() |
void |
cookieSet(String key,
String val,
String domain,
String path,
int maxAge) |
Map<String,List<org.noear.solon.core.handle.UploadedFile>> |
filesMap() |
void |
flush() |
void |
headerAdd(String key,
String val) |
org.noear.solon.core.NvMap |
headerMap() |
void |
headerSet(String key,
String val) |
Map<String,List<String>> |
headersMap() |
protected void |
innerCommit() |
protected boolean |
innerIsAsync() |
String |
ip() |
boolean |
isSecure() |
String |
method() |
void |
output(byte[] bytes) |
void |
output(InputStream stream) |
OutputStream |
outputStream() |
org.noear.solon.core.NvMap |
paramMap() |
Map<String,List<String>> |
paramsMap() |
String |
protocol() |
String |
queryString() |
void |
redirect(String url,
int code) |
Object |
request() |
Object |
response() |
int |
status() |
protected void |
statusDoSet(int status) |
URI |
uri() |
String |
url() |
contentCharset, session, sessionAsDouble, sessionAsDouble, sessionAsInt, sessionAsInt, sessionAsLong, sessionAsLong, sessionClear, sessionId, sessionOrDefault, sessionRemove, sessionSetaccept, action, asyncStart, attr, attr, attrClear, attrMap, attrOrDefault, attrSet, attrSet, autoMultipart, autoMultipart, body, body, bodyAsBytes, bodyNew, bodyNew, contentLength, contentType, contentTypeNew, controller, cookie, cookie, cookieOrDefault, cookieRemove, cookieSet, cookieSet, cookieSet, current, file, files, forward, getHandled, getLocale, getRendered, header, header, headerOrDefault, headerValues, isFormUrlencoded, isMultipart, isMultipartFormData, mainHandler, output, output, outputAsFile, outputAsFile, outputAsHtml, outputAsJson, param, param, paramAsBean, paramAsDecimal, paramAsDecimal, paramAsDouble, paramAsDouble, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramOrDefault, paramsAdd, paramSet, paramValues, path, pathAsLower, pathAsUpper, pathMap, pathNew, pathNew, protocolAsUpper, realIp, redirect, remoting, remotingSet, render, render, renderAndReturn, session, session, sessionState, setHandled, setLocale, setRendered, status, statusSet, userAgentpublic SolonServletContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected boolean innerIsAsync()
public Object request()
request 在类中 org.noear.solon.core.handle.Contextpublic String ip()
ip 在类中 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 contentType()
contentType 在类中 org.noear.solon.boot.web.WebContextBasepublic String queryString()
queryString 在类中 org.noear.solon.core.handle.Contextpublic InputStream bodyAsStream() throws IOException
bodyAsStream 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic org.noear.solon.core.NvMap paramMap()
paramMap 在类中 org.noear.solon.core.handle.Contextpublic Map<String,List<String>> paramsMap()
paramsMap 在类中 org.noear.solon.core.handle.Contextpublic Map<String,List<org.noear.solon.core.handle.UploadedFile>> filesMap() throws IOException
filesMap 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic org.noear.solon.core.NvMap cookieMap()
cookieMap 在类中 org.noear.solon.core.handle.Contextpublic org.noear.solon.core.NvMap headerMap()
headerMap 在类中 org.noear.solon.core.handle.Contextpublic Map<String,List<String>> headersMap()
headersMap 在类中 org.noear.solon.core.handle.Contextpublic Object response()
response 在类中 org.noear.solon.core.handle.Contextpublic void charset(String charset)
charset 在类中 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 key, String val)
headerSet 在类中 org.noear.solon.core.handle.Contextpublic void headerAdd(String key, String val)
headerAdd 在类中 org.noear.solon.core.handle.Contextpublic void cookieSet(String key, String val, String domain, String path, int maxAge)
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 boolean asyncSupported()
asyncSupported 在类中 org.noear.solon.core.handle.Contextpublic void asyncStart(long timeout,
org.noear.solon.core.handle.ContextAsyncListener listener)
asyncStart 在类中 org.noear.solon.core.handle.Contextpublic void asyncComplete()
throws IOException
asyncComplete 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic 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.WebContextBaseIOExceptionCopyright © 2023. All rights reserved.