public class StompContext extends ContextEmpty
cookieMap, filesMap, headerMap, paramMap
charset, errors, result, sessionState
构造器和说明 |
---|
StompContext(WebSocket session,
Frame message,
java.lang.String destination,
StompEmitter sender) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
body(java.lang.String charset)
获取body内容
|
java.lang.String |
contentType()
获取内容类型
|
Frame |
getMessage() |
StompEmitter |
getSender() |
MultiMap<java.lang.String> |
headerMap()
获取头字典集合
|
java.lang.String |
path() |
java.lang.Object |
pull(java.lang.Class<?> clz)
拉取
|
java.lang.Object |
request()
获取请求对象
|
java.lang.String |
sessionId()
获取 sessionId
|
void |
tryHandle()
new StompContext(...).tryHandle();
|
asyncComplete, asyncStart, asyncSupported, bodyAsStream, close, contentCharset, contentLength, contentTypeDoSet, cookieMap, cookieSet, create, fileMap, filesDelete, flush, headerAdd, headerNamesOfResponse, headerOfResponse, headerSet, headerValuesOfResponse, isSecure, method, output, output, outputAsFile, outputAsFile, outputStream, outputStreamAsGzip, paramMap, protocol, queryString, redirect, remoteIp, remotePort, request, response, 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, contentType, contentTypeNew, controller, cookie, cookieNames, cookieOrDefault, cookieRemove, cookieSet, cookieSet, cookieSet, cookieSet, cookieValues, current, file, fileNames, fileValues, forward, getHandled, getLocale, getRendered, header, headerNames, headerOrDefault, headerValues, isFormUrlencoded, isMultipart, 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, setHandled, setLocale, setRendered, status, userAgent
public StompContext(WebSocket session, Frame message, java.lang.String destination, StompEmitter sender)
public java.lang.Object request()
Context
request
在类中 ContextEmpty
public Frame getMessage()
public StompEmitter getSender()
public java.lang.String sessionId()
Context
sessionId
在类中 ContextEmpty
public java.lang.String path()
path
在类中 ContextEmpty
public java.lang.String contentType()
Context
contentType
在类中 ContextEmpty
public java.lang.String body(java.lang.String charset) throws java.io.IOException
Context
public MultiMap<java.lang.String> headerMap()
Context
headerMap
在类中 ContextEmpty
public void tryHandle()
new StompContext(...).tryHandle();