public class JlHttpContext extends WebContextBase
_fileMapcharset, errors, result, sessionState| 构造器和说明 |
|---|
JlHttpContext(org.noear.jlhttp.HTTPServer.Request request,
org.noear.jlhttp.HTTPServer.Response response) |
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, contentLength, 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, setHandled, setLocale, setRendered, status, userAgentpublic JlHttpContext(org.noear.jlhttp.HTTPServer.Request request,
org.noear.jlhttp.HTTPServer.Response response)
public Object request()
public String remoteIp()
public int remotePort()
public String method()
public String protocol()
public URI uri()
uri 在类中 org.noear.solon.core.handle.Contextpublic boolean isSecure()
public String url()
url 在类中 org.noear.solon.core.handle.Contextpublic long contentLength()
public String queryString()
public 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()
public org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile> fileMap()
public org.noear.solon.core.util.MultiMap<String> cookieMap()
public org.noear.solon.core.util.MultiMap<String> headerMap()
public Object response()
protected void contentTypeDoSet(String contentType)
public OutputStream outputStream() throws IOException
outputStream 在类中 org.noear.solon.core.handle.ContextIOExceptionpublic void output(byte[] bytes)
public void output(InputStream stream)
public Collection<String> headerValuesOfResponse(String name)
public Collection<String> headerNamesOfResponse()
public void cookieSet(org.noear.solon.core.handle.Cookie cookie)
public void redirect(String url, int code)
public int status()
protected void statusDoSet(int status)
public 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 在类中 WebContextBaseIOExceptionpublic boolean asyncSupported()
public boolean asyncStarted()
public void asyncListener(org.noear.solon.core.handle.ContextAsyncListener listener)
public void asyncStart(long timeout,
Runnable runnable)
public void asyncComplete()
protected void asyncAwait()
throws InterruptedException,
ExecutionException,
IOException
Copyright © 2024. All rights reserved.