public class WebSocketRequestImpl extends Object implements WebSocketRequest, WebSocket
PAYLOAD_FINISH| 构造器和说明 |
|---|
WebSocketRequestImpl(Request baseHttpRequest) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.smartboot.socket.util.Attachment |
getAttachment()
获取附件对象
|
String |
getCharacterEncoding() |
int |
getContentLength() |
String |
getContentType() |
Cookie[] |
getCookies()
获取Cookie
|
int |
getFrameOpcode() |
int |
getFrameRsv() |
String |
getHeader(String headName)
获取指定名称的Http Header值
|
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String name) |
InputStream |
getInputStream() |
InetSocketAddress |
getLocalAddress() |
Locale |
getLocale() |
Enumeration<Locale> |
getLocales() |
byte[] |
getMaskingKey() |
String |
getMethod()
Returns the name of the HTTP method with which this
request was made, for example, GET, POST, or PUT.
|
String |
getParameter(String name) |
Map<String,String[]> |
getParameters() |
String[] |
getParameterValues(String name) |
byte[] |
getPayload() |
SmartDecoder |
getPayloadDecoder() |
long |
getPayloadLength() |
String |
getProtocol() |
String |
getQueryString() |
String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
InetSocketAddress |
getRemoteAddress() |
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
Request |
getRequest() |
String |
getRequestURI() |
String |
getRequestURL() |
WebSocketResponseImpl |
getResponse() |
String |
getScheme() |
boolean |
isFrameFinalFlag() |
boolean |
isFrameMasked() |
boolean |
isSecure()
是否启动安全通信
|
void |
reset() |
void |
setAttachment(org.smartboot.socket.util.Attachment attachment)
存放附件,支持任意类型
|
void |
setFrameFinalFlag(boolean frameFinalFlag) |
void |
setFrameMasked(boolean frameMasked) |
void |
setFrameOpcode(int frameOpcode) |
void |
setFrameRsv(int frameRsv) |
void |
setMaskingKey(byte[] maskingKey) |
void |
setPayload(byte[] payload) |
void |
setPayloadDecoder(SmartDecoder payloadDecoder) |
void |
setPayloadLength(long payloadLength) |
getLocalAddress, getParameters, getQueryString, getRemoteAddress, getRequestURI, getRequestURL, isSecurepublic WebSocketRequestImpl(Request baseHttpRequest)
public final WebSocketResponseImpl getResponse()
public InputStream getInputStream()
getInputStream 在接口中 HttpRequestpublic boolean isFrameFinalFlag()
isFrameFinalFlag 在接口中 WebSocketpublic void setFrameFinalFlag(boolean frameFinalFlag)
setFrameFinalFlag 在接口中 WebSocketpublic boolean isFrameMasked()
isFrameMasked 在接口中 WebSocketpublic void setFrameMasked(boolean frameMasked)
setFrameMasked 在接口中 WebSocketpublic int getFrameRsv()
getFrameRsv 在接口中 WebSocketpublic void setFrameRsv(int frameRsv)
setFrameRsv 在接口中 WebSocketpublic int getFrameOpcode()
getFrameOpcode 在接口中 WebSocketgetFrameOpcode 在接口中 WebSocketRequestpublic void setFrameOpcode(int frameOpcode)
setFrameOpcode 在接口中 WebSocketpublic byte[] getPayload()
getPayload 在接口中 WebSocketgetPayload 在接口中 WebSocketRequestpublic long getPayloadLength()
getPayloadLength 在接口中 WebSocketpublic void setPayloadLength(long payloadLength)
setPayloadLength 在接口中 WebSocketpublic byte[] getMaskingKey()
getMaskingKey 在接口中 WebSocketpublic void setMaskingKey(byte[] maskingKey)
setMaskingKey 在接口中 WebSocketpublic void setPayload(byte[] payload)
setPayload 在接口中 WebSocketpublic SmartDecoder getPayloadDecoder()
getPayloadDecoder 在接口中 WebSocketpublic void setPayloadDecoder(SmartDecoder payloadDecoder)
setPayloadDecoder 在接口中 WebSocketpublic final String getHeader(String headName)
HttpRequestgetHeader 在接口中 HttpRequestpublic final Collection<String> getHeaders(String name)
getHeaders 在接口中 HttpRequestpublic final Collection<String> getHeaderNames()
getHeaderNames 在接口中 HttpRequestpublic final String getRequestURI()
getRequestURI 在接口中 HttpRequestpublic final String getProtocol()
getProtocol 在接口中 HttpRequestpublic final String getMethod()
HttpRequestgetMethod 在接口中 HttpRequestString
specifying the name
of the method with which
this request was madepublic final String getScheme()
getScheme 在接口中 HttpRequestpublic final String getRequestURL()
getRequestURL 在接口中 HttpRequestpublic final String getQueryString()
getQueryString 在接口中 HttpRequestpublic final String getContentType()
getContentType 在接口中 HttpRequestpublic final int getContentLength()
getContentLength 在接口中 HttpRequestpublic final String getParameter(String name)
getParameter 在接口中 HttpRequestpublic final Map<String,String[]> getParameters()
getParameters 在接口中 HttpRequestpublic final String[] getParameterValues(String name)
getParameterValues 在接口中 HttpRequestpublic final String getRemoteAddr()
HttpRequestREMOTE_ADDR.getRemoteAddr 在接口中 HttpRequestString containing the
IP address of the client that sent the requestpublic final InetSocketAddress getRemoteAddress()
getRemoteAddress 在接口中 HttpRequestpublic final InetSocketAddress getLocalAddress()
getLocalAddress 在接口中 HttpRequestpublic final String getRemoteHost()
HttpRequestREMOTE_HOST.getRemoteHost 在接口中 HttpRequestString containing the fully
qualified name of the clientpublic final Locale getLocale()
getLocale 在接口中 HttpRequestpublic final Enumeration<Locale> getLocales()
getLocales 在接口中 HttpRequestpublic final String getCharacterEncoding()
getCharacterEncoding 在接口中 HttpRequestpublic final Request getRequest()
public Cookie[] getCookies()
HttpRequestgetCookies 在接口中 HttpRequestpublic org.smartboot.socket.util.Attachment getAttachment()
HttpRequestgetAttachment 在接口中 HttpRequestpublic void setAttachment(org.smartboot.socket.util.Attachment attachment)
HttpRequestsetAttachment 在接口中 HttpRequestattachment - 附件对象public final boolean isSecure()
HttpRequestisSecure 在接口中 HttpRequestCopyright © 2024. All rights reserved.