Class GyHttpContext
java.lang.Object
org.noear.solon.core.handle.Context
org.noear.solon.server.handle.ContextBase
org.noear.solon.server.grizzly.http.GyHttpContext
- Since:
- 3.6
- Author:
- noear
-
Field Summary
FieldsFields inherited from class org.noear.solon.server.handle.ContextBase
_fileMapFields inherited from class org.noear.solon.core.handle.Context
charset, errors, result, sessionState -
Constructor Summary
ConstructorsConstructorDescriptionGyHttpContext(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidasyncListener(org.noear.solon.core.handle.ContextAsyncListener listener) voidasyncStart(long timeout, Runnable runnable) booleanbooleanvoidclose()longvoidcontentLength(long size) protected voidcontentTypeDoSet(String contentType) org.noear.solon.core.util.MultiMap<String>voidcookieSet(org.noear.solon.core.handle.Cookie cookie) org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile>fileMap()voidflush()voidorg.noear.solon.core.util.MultiMap<String>headerOfResponse(String name) voidheaderValuesOfResponse(String name) protected voidprotected org.glassfish.grizzly.http.server.Requestprotected org.glassfish.grizzly.http.server.ResponsebooleanbooleanisSecure()method()voidoutput(byte[] bytes) voidoutput(InputStream stream) org.noear.solon.core.util.MultiMap<String>paramMap()protocol()voidremoteIp()intrequest()response()intstatus()protected voidstatusDoSet(int status) uri()url()Methods inherited from class org.noear.solon.server.handle.ContextBase
contentCharset, contentType, filesDelete, outputAsFile, outputAsFile, outputStreamAsGzip, parseURI, path, session, sessionAsDouble, sessionAsDouble, sessionAsInt, sessionAsInt, sessionAsLong, sessionAsLong, sessionClear, sessionId, sessionOrDefault, sessionRemove, sessionReset, sessionSetMethods inherited from class org.noear.solon.core.handle.Context
accept, 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, userAgent
-
Field Details
-
asyncState
-
-
Constructor Details
-
GyHttpContext
public GyHttpContext(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response)
-
-
Method Details
-
innerGetRequest
protected org.glassfish.grizzly.http.server.Request innerGetRequest() -
innerGetResponse
protected org.glassfish.grizzly.http.server.Response innerGetResponse() -
isHeadersSent
public boolean isHeadersSent()- Specified by:
isHeadersSentin classorg.noear.solon.core.handle.Context
-
request
- Specified by:
requestin classorg.noear.solon.core.handle.Context
-
remoteIp
- Specified by:
remoteIpin classorg.noear.solon.core.handle.Context
-
remotePort
public int remotePort()- Specified by:
remotePortin classorg.noear.solon.core.handle.Context
-
method
- Specified by:
methodin classorg.noear.solon.core.handle.Context
-
protocol
- Specified by:
protocolin classorg.noear.solon.core.handle.Context
-
uri
- Specified by:
uriin classorg.noear.solon.core.handle.Context
-
isSecure
public boolean isSecure()- Specified by:
isSecurein classorg.noear.solon.core.handle.Context
-
url
- Specified by:
urlin classorg.noear.solon.core.handle.Context
-
contentLength
public long contentLength()- Specified by:
contentLengthin classorg.noear.solon.core.handle.Context
-
queryString
- Specified by:
queryStringin classorg.noear.solon.core.handle.Context
-
body
- Overrides:
bodyin classorg.noear.solon.core.handle.Context- Throws:
IOException
-
bodyAsStream
- Specified by:
bodyAsStreamin classorg.noear.solon.core.handle.Context- Throws:
IOException
-
paramMap
- Specified by:
paramMapin classorg.noear.solon.core.handle.Context
-
fileMap
public org.noear.solon.core.util.MultiMap<org.noear.solon.core.handle.UploadedFile> fileMap()- Specified by:
fileMapin classorg.noear.solon.core.handle.Context
-
cookieMap
- Specified by:
cookieMapin classorg.noear.solon.core.handle.Context
-
headerMap
- Specified by:
headerMapin classorg.noear.solon.core.handle.Context
-
response
- Specified by:
responsein classorg.noear.solon.core.handle.Context
-
contentTypeDoSet
- Specified by:
contentTypeDoSetin classorg.noear.solon.core.handle.Context
-
outputStream
- Specified by:
outputStreamin classorg.noear.solon.core.handle.Context- Throws:
IOException
-
output
public void output(byte[] bytes) - Specified by:
outputin classorg.noear.solon.core.handle.Context
-
output
- Specified by:
outputin classorg.noear.solon.core.handle.Context
-
headerSet
- Specified by:
headerSetin classorg.noear.solon.core.handle.Context
-
headerAdd
- Specified by:
headerAddin classorg.noear.solon.core.handle.Context
-
headerOfResponse
- Specified by:
headerOfResponsein classorg.noear.solon.core.handle.Context
-
headerValuesOfResponse
- Specified by:
headerValuesOfResponsein classorg.noear.solon.core.handle.Context
-
headerNamesOfResponse
- Specified by:
headerNamesOfResponsein classorg.noear.solon.core.handle.Context
-
cookieSet
public void cookieSet(org.noear.solon.core.handle.Cookie cookie) - Specified by:
cookieSetin classorg.noear.solon.core.handle.Context
-
redirect
- Specified by:
redirectin classorg.noear.solon.core.handle.Context
-
status
public int status()- Specified by:
statusin classorg.noear.solon.core.handle.Context
-
statusDoSet
protected void statusDoSet(int status) - Specified by:
statusDoSetin classorg.noear.solon.core.handle.Context
-
contentLength
public void contentLength(long size) - Overrides:
contentLengthin classorg.noear.solon.core.handle.Context
-
flush
- Specified by:
flushin classorg.noear.solon.core.handle.Context- Throws:
IOException
-
close
- Specified by:
closein classorg.noear.solon.core.handle.Context- Throws:
IOException
-
innerCommit
- Overrides:
innerCommitin classContextBase- Throws:
IOException
-
asyncSupported
public boolean asyncSupported()- Specified by:
asyncSupportedin classorg.noear.solon.core.handle.Context
-
asyncStarted
public boolean asyncStarted()- Specified by:
asyncStartedin classorg.noear.solon.core.handle.Context
-
asyncListener
public void asyncListener(org.noear.solon.core.handle.ContextAsyncListener listener) - Specified by:
asyncListenerin classorg.noear.solon.core.handle.Context
-
asyncStart
- Specified by:
asyncStartin classorg.noear.solon.core.handle.Context
-
asyncComplete
public void asyncComplete()- Specified by:
asyncCompletein classorg.noear.solon.core.handle.Context
-