public class GyHttpContext extends ContextBase
| Modifier and Type | Field and Description |
|---|---|
protected AsyncContextState |
asyncState |
_fileMap| Constructor and Description |
|---|
GyHttpContext(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response) |
| 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 key,
String val) |
org.noear.solon.core.util.MultiMap<String> |
headerMap() |
Collection<String> |
headerNamesOfResponse() |
String |
headerOfResponse(String name) |
void |
headerSet(String key,
String val) |
Collection<String> |
headerValuesOfResponse(String name) |
protected void |
innerCommit() |
protected org.glassfish.grizzly.http.server.Request |
innerGetRequest() |
protected org.glassfish.grizzly.http.server.Response |
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, parseURI, 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, cacheControl, charset, contentType, contentTypeNew, controller, cookie, cookieNames, cookieOrDefault, cookieRemove, cookieSet, cookieSet, cookieSet, cookieSet, cookieValues, current, file, fileNames, fileValues, forward, getHandled, getLocale, getRendered, getVersion, header, headerNames, headerOrDefault, headerValues, isFormUrlencoded, isMultipart, isMultipartFormData, keepAlive, 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, returnValue, session, sessionState, sessionState, setHandled, setLocale, setRendered, setVersion, status, status, userAgentprotected final AsyncContextState asyncState
public GyHttpContext(org.glassfish.grizzly.http.server.Request request,
org.glassfish.grizzly.http.server.Response response)
protected org.glassfish.grizzly.http.server.Request innerGetRequest()
protected org.glassfish.grizzly.http.server.Response 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 String body(String charset) throws IOException
body in class org.noear.solon.core.handle.ContextIOExceptionpublic InputStream bodyAsStream() throws IOException
bodyAsStream 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 key, String val)
headerSet in class org.noear.solon.core.handle.Contextpublic void headerAdd(String key, 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 ContextBaseIOExceptionpublic 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.