public class JlHttpContext extends ContextBase
| 构造器和说明 |
|---|
JlHttpContext(HTTPServer.Request request,
HTTPServer.Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStream |
bodyAsStream() |
protected void |
commit() |
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) |
List<org.noear.solon.core.handle.UploadedFile> |
files(String key) |
void |
flush() |
void |
headerAdd(String key,
String val) |
org.noear.solon.core.NvMap |
headerMap() |
void |
headerSet(String key,
String val) |
String |
ip() |
String |
method() |
void |
output(byte[] bytes) |
void |
output(InputStream stream) |
OutputStream |
outputStream() |
String |
param(String key) |
String |
param(String key,
String def) |
org.noear.solon.core.NvMap |
paramMap() |
Map<String,List<String>> |
paramsMap() |
String[] |
paramValues(String key) |
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, session, sessionAsDouble, sessionAsDouble, sessionAsInt, sessionAsInt, sessionAsLong, sessionAsLong, sessionClear, sessionId, sessionRemove, sessionSetaccept, action, attr, attr, attrClear, attrMap, attrSet, attrSet, autoMultipart, autoMultipart, body, body, bodyAsBytes, bodyNew, bodyNew, charset, close, contentLength, contentType, contentTypeNew, controller, cookie, cookie, cookieRemove, cookieSet, cookieSet, cookieSet, current, file, forward, getHandled, getLocale, getRendered, header, header, isMultipart, isMultipartFormData, output, output, outputAsFile, outputAsFile, outputAsHtml, outputAsJson, paramAsBean, paramAsDecimal, paramAsDecimal, paramAsDouble, paramAsDouble, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramsAdd, paramSet, path, pathAsUpper, pathMap, pathNew, pathNew, protocolAsUpper, realIp, redirect, remoting, remotingSet, render, render, renderAndReturn, sessionState, setHandled, setLocale, setRendered, status, statusSet, userAgentpublic JlHttpContext(HTTPServer.Request request, HTTPServer.Response response)
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 String url()
url 在类中 org.noear.solon.core.handle.Contextpublic long contentLength()
contentLength 在类中 org.noear.solon.core.handle.Contextpublic String contentType()
contentType 在类中 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[] paramValues(String key)
paramValues 在类中 org.noear.solon.core.handle.Contextpublic String param(String key, String def)
param 在类中 org.noear.solon.core.handle.Contextpublic 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 List<org.noear.solon.core.handle.UploadedFile> files(String key) throws Exception
files 在类中 org.noear.solon.core.handle.ContextExceptionpublic 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 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 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 void flush()
throws IOException
flush 在类中 org.noear.solon.core.handle.ContextIOExceptionprotected void commit()
throws IOException
commit 在类中 org.noear.solon.core.handle.ContextIOExceptionCopyright © 2022. All rights reserved.