public class SsContext extends XContextEmpty
| 构造器和说明 |
|---|
SsContext(org.smartboot.socket.transport.AioSession<byte[]> session,
InputStream inputStream) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
body() |
InputStream |
bodyAsStream() |
void |
charset(String charset) |
void |
close() |
protected void |
commit() |
long |
contentLength() |
String |
contentType() |
void |
contentType(String contentType) |
String |
ip() |
boolean |
isMultipart() |
String |
method() |
void |
output(InputStream stream) |
void |
output(String str) |
OutputStream |
outputStream() |
String |
path() |
String |
protocol() |
Object |
request() |
Object |
response() |
URI |
uri() |
String |
url() |
contentTypeDoSet, cookie, cookie, cookieMap, cookieSet, create, files, header, header, headerMap, headerSet, param, param, paramMap, paramValues, redirect, redirect, sessionMap, status, statusattr, attrClear, attrSet, attrSet, contentTypeNew, cookieRemove, cookieSet, cookieSet, current, file, getHandled, isMultipartFormData, output, outputAsHtml, outputAsJson, paramAsDouble, paramAsDouble, paramAsEntity, paramAsInt, paramAsInt, paramAsLong, paramAsLong, paramSet, pathAsUpper, pathMap, protocolAsUpper, render, render, session, sessionClear, sessionId, sessionSet, sessionState, sessionStateInit, setHandled, userAgentpublic SsContext(org.smartboot.socket.transport.AioSession<byte[]> session,
InputStream inputStream)
public Object request()
request 在类中 XContextEmptypublic String ip()
ip 在类中 XContextEmptypublic boolean isMultipart()
isMultipart 在类中 XContextpublic String method()
method 在类中 XContextEmptypublic String protocol()
protocol 在类中 XContextEmptypublic URI uri()
uri 在类中 XContextEmptypublic String path()
path 在类中 XContextEmptypublic String url()
url 在类中 XContextEmptypublic long contentLength()
contentLength 在类中 XContextEmptypublic String contentType()
contentType 在类中 XContextEmptypublic String body() throws IOException
body 在类中 XContextEmptyIOExceptionpublic InputStream bodyAsStream() throws IOException
bodyAsStream 在类中 XContextEmptyIOExceptionpublic Object response()
response 在类中 XContextEmptypublic void charset(String charset)
charset 在类中 XContextEmptypublic void contentType(String contentType)
contentType 在类中 XContextpublic OutputStream outputStream()
outputStream 在类中 XContextEmptypublic void output(String str)
output 在类中 XContextEmptypublic void output(InputStream stream)
output 在类中 XContextEmptyprotected void commit()
throws IOException
commit 在类中 XContextIOExceptionpublic void close()
throws IOException
close 在类中 XContextIOExceptionCopyright © 2019. All rights reserved.