public final class AsyncContext extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PORTAL_CAP_ASYNC_CONTEXT_ATTRIBUTE |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
getAttribute(String name) |
<T> T |
getAttribute(String name,
T defaultValue) |
Context |
getContext() |
<T> void |
setAttribute(String name,
T value) |
static AsyncContext |
startAsync() |
void |
writeException(Throwable ex) |
void |
writeResult(Object result) |
public static AsyncContext startAsync() throws IOException
IOExceptionpublic <T> T getAttribute(String name)
public <T> T getAttribute(String name, T defaultValue)
public <T> void setAttribute(String name, T value)
public Context getContext()
public void writeException(Throwable ex) throws IOException
IOExceptionpublic void writeResult(Object result) throws IOException
IOExceptionCopyright © 2020. All Rights Reserved.