public class WebSocketRequestImpl extends Object implements WebSocketRequest, WebSocket, Reset
| Modifier and Type | Field and Description |
|---|---|
Request |
request |
PAYLOAD_FINISHSSL_ENGINE_THREAD_LOCAL| Constructor and Description |
|---|
WebSocketRequestImpl(Request baseHttpRequest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeader, getHeaderNames, getHeaders, getLocalAddress, getParameters, getQueryString, getRemoteAddress, getRequestURI, getRequestURL, isSecurepublic Request request
public WebSocketRequestImpl(Request baseHttpRequest)
public final WebSocketResponseImpl getResponse()
public BodyInputStream getInputStream()
getInputStream in interface HttpRequestpublic boolean isFrameFinalFlag()
isFrameFinalFlag in interface WebSocketpublic void setFrameFinalFlag(boolean frameFinalFlag)
setFrameFinalFlag in interface WebSocketpublic boolean isFrameMasked()
isFrameMasked in interface WebSocketpublic void setFrameMasked(boolean frameMasked)
setFrameMasked in interface WebSocketpublic int getFrameRsv()
getFrameRsv in interface WebSocketpublic void setFrameRsv(int frameRsv)
setFrameRsv in interface WebSocketpublic int getFrameOpcode()
getFrameOpcode in interface WebSocketgetFrameOpcode in interface WebSocketRequestpublic void setFrameOpcode(int frameOpcode)
setFrameOpcode in interface WebSocketpublic byte[] getPayload()
getPayload in interface WebSocketgetPayload in interface WebSocketRequestpublic Collection<Part> getParts() throws IOException
getParts in interface HttpRequestIOExceptionpublic Collection<Part> getParts(MultipartConfig configElement) throws IOException
getParts in interface HttpRequestIOExceptionpublic Map<String,String> getTrailerFields()
getTrailerFields in interface HttpRequestpublic boolean isTrailerFieldsReady()
isTrailerFieldsReady in interface HttpRequestpublic org.smartboot.socket.util.Attachment getAttachment()
HttpRequestgetAttachment in interface HttpRequestgetAttachment in interface WebSocketRequestpublic void setAttachment(org.smartboot.socket.util.Attachment attachment)
HttpRequestsetAttachment in interface HttpRequestsetAttachment in interface WebSocketRequestattachment - 附件对象public PushBuilder newPushBuilder()
newPushBuilder in interface HttpRequestpublic long getPayloadLength()
getPayloadLength in interface WebSocketpublic void setPayloadLength(long payloadLength)
setPayloadLength in interface WebSocketpublic byte[] getMaskingKey()
getMaskingKey in interface WebSocketpublic void setMaskingKey(byte[] maskingKey)
setMaskingKey in interface WebSocketpublic void setPayload(byte[] payload)
setPayload in interface WebSocketpublic SmartDecoder getPayloadDecoder()
getPayloadDecoder in interface WebSocketpublic void setPayloadDecoder(SmartDecoder payloadDecoder)
setPayloadDecoder in interface WebSocketprotected void init(Request request)
public SSLEngine getSslEngine()
getSslEngine in interface HttpRequestpublic final String getHeader(String headName)
HttpRequestgetHeader in interface HttpRequestpublic final String getHeader(HeaderNameEnum headName)
public final Collection<String> getHeaders(String name)
getHeaders in interface HttpRequestpublic final Collection<String> getHeaderNames()
getHeaderNames in interface HttpRequestpublic final String getRequestURI()
getRequestURI in interface HttpRequestpublic final HttpProtocolEnum getProtocol()
getProtocol in interface HttpRequestpublic final String getMethod()
HttpRequestgetMethod in interface HttpRequestString
specifying the name
of the method with which
this request was madepublic final String getScheme()
getScheme in interface HttpRequestpublic final String getRequestURL()
getRequestURL in interface HttpRequestpublic final String getQueryString()
getQueryString in interface HttpRequestpublic final String getContentType()
getContentType in interface HttpRequestpublic final long getContentLength()
getContentLength in interface HttpRequestpublic final String getParameter(String name)
getParameter in interface HttpRequestpublic final Map<String,String[]> getParameters()
getParameters in interface HttpRequestpublic final String[] getParameterValues(String name)
getParameterValues in interface HttpRequestpublic final String getRemoteAddr()
HttpRequestREMOTE_ADDR.getRemoteAddr in interface HttpRequestString containing the
IP address of the client that sent the requestpublic final InetSocketAddress getRemoteAddress()
getRemoteAddress in interface HttpRequestpublic final InetSocketAddress getLocalAddress()
getLocalAddress in interface HttpRequestpublic final String getRemoteHost()
HttpRequestREMOTE_HOST.getRemoteHost in interface HttpRequestString containing the fully
qualified name of the clientpublic final Locale getLocale()
getLocale in interface HttpRequestpublic final Enumeration<Locale> getLocales()
getLocales in interface HttpRequestpublic final String getCharacterEncoding()
getCharacterEncoding in interface HttpRequestpublic final Request getRequest()
public Cookie[] getCookies()
HttpRequestgetCookies in interface HttpRequestpublic final boolean isSecure()
HttpRequestisSecure in interface HttpRequestCopyright © 2025. All rights reserved.