public class StompContext extends ContextEmpty
限定符和类型 | 字段和说明 |
---|---|
protected AsyncContextState |
asyncState |
cookieMap, filesMap, headerMap, headerOfResponseMap, paramMap
charset, errors, result, sessionState
构造器和说明 |
---|
StompContext(StompSession session,
Frame frame,
java.lang.String destination,
StompBrokerMedia brokerMedia) |
限定符和类型 | 方法和说明 |
---|---|
void |
asyncComplete()
异步完成
|
void |
asyncListener(ContextAsyncListener listener)
异步监听
|
void |
asyncStart(long timeout,
java.lang.Runnable runnable)
异步开始
|
boolean |
asyncStarted()
异步已开始
|
boolean |
asyncSupported()
是否支持异步
|
java.lang.String |
body(java.lang.String charset)
请求主体
|
java.io.InputStream |
bodyAsStream()
获取body内容为Stream
|
java.lang.String |
contentType()
内容类型
|
void |
contentType(java.lang.String contentType)
设置内容类型
|
StompEmitter |
emitter()
发射器
|
Frame |
frame()
数据帧
|
MultiMap<java.lang.String> |
headerMap()
请求头
|
protected void |
innerCommit() |
boolean |
isMultipart()
是否为分段内容
|
java.lang.String |
method()
请求方式
|
java.lang.String |
path()
请求路径
|
java.lang.Object |
pull(java.lang.Class<?> clz)
提取
|
java.lang.String |
remoteIp()
获取远程IP
|
int |
remotePort()
获取远程Port
|
java.lang.Object |
request()
请求对象
|
java.lang.Object |
response()
获取响应对象
|
java.lang.String |
sessionId()
会话Id
|
close, contentCharset, contentLength, contentTypeDoSet, cookieMap, cookieSet, create, fileMap, filesDelete, flush, headerAdd, headerNamesOfResponse, headerOfResponse, headerOfResponseMap, headerSet, headerValuesOfResponse, isSecure, output, output, outputAsFile, outputAsFile, outputStream, outputStreamAsGzip, paramMap, protocol, queryString, redirect, request, response, session, sessionAsDouble, sessionAsDouble, sessionAsInt, sessionAsInt, sessionAsLong, sessionAsLong, sessionClear, sessionOrDefault, sessionRemove, sessionReset, sessionSet, status, statusDoSet, uri, url
accept, accept, acceptNew, action, asyncStart, attr, attrMap, attrNames, attrOrDefault, attrsClear, attrSet, attrSet, autoMultipart, autoMultipart, body, bodyAsBytes, bodyNew, bodyNew, charset, contentLength, contentTypeNew, controller, cookie, cookieNames, cookieOrDefault, cookieRemove, cookieSet, cookieSet, cookieSet, cookieSet, cookieValues, current, file, fileNames, fileValues, forward, getHandled, getLocale, getRendered, header, headerNames, headerOrDefault, headerValues, isFormUrlencoded, 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, realIp, redirect, referer, remoting, remotingSet, render, render, renderAndReturn, session, sessionState, sessionState, setHandled, setLocale, setRendered, status, userAgent
protected final AsyncContextState asyncState
public StompContext(StompSession session, Frame frame, java.lang.String destination, StompBrokerMedia brokerMedia)
public Frame frame()
public StompEmitter emitter()
public java.lang.Object request()
request
在类中 ContextEmpty
public java.lang.String remoteIp()
Context
remoteIp
在类中 ContextEmpty
public int remotePort()
Context
remotePort
在类中 ContextEmpty
public boolean isMultipart()
Context
isMultipart
在类中 Context
public java.lang.String sessionId()
sessionId
在类中 ContextEmpty
public java.lang.String method()
method
在类中 ContextEmpty
public java.lang.String path()
path
在类中 ContextEmpty
public java.lang.String contentType()
contentType
在类中 ContextEmpty
public java.io.InputStream bodyAsStream() throws java.io.IOException
Context
bodyAsStream
在类中 ContextEmpty
java.io.IOException
public java.lang.String body(java.lang.String charset) throws java.io.IOException
public MultiMap<java.lang.String> headerMap()
headerMap
在类中 ContextEmpty
public java.lang.Object response()
Context
response
在类中 ContextEmpty
public void contentType(java.lang.String contentType)
Context
contentType
在类中 Context
protected void innerCommit() throws java.lang.Throwable
java.lang.Throwable
public boolean asyncSupported()
Context
asyncSupported
在类中 ContextEmpty
public boolean asyncStarted()
Context
asyncStarted
在类中 ContextEmpty
public void asyncListener(ContextAsyncListener listener)
Context
asyncListener
在类中 ContextEmpty
public void asyncStart(long timeout, java.lang.Runnable runnable)
Context
asyncStart
在类中 ContextEmpty
timeout
- 超时runnable
- 运行器public void asyncComplete()
Context
asyncComplete
在类中 ContextEmpty