Class Http1ServerWebSocketHandshakeRequest
java.lang.Object
cool.scx.websocket.x.Http1ServerWebSocketHandshakeRequest
- All Implemented Interfaces:
cool.scx.http.headers.ScxHttpHeadersReadHelper,cool.scx.http.ScxHttpServerRequest,ScxServerWebSocketHandshakeRequest
public class Http1ServerWebSocketHandshakeRequest
extends Object
implements ScxServerWebSocketHandshakeRequest
基于 http1 的 websocket 握手请求
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionHttp1ServerWebSocketHandshakeRequest(Http1ServerConnection connection, Http1RequestLine requestLine, Http1Headers headers, InputStream bodyInputStream, WebSocketOptions webSocketOptions) -
Method Summary
Modifier and TypeMethodDescriptioncool.scx.http.body.ScxHttpBodybody()cool.scx.http.headers.ScxHttpHeadersheaders()cool.scx.http.peer_info.PeerInfocool.scx.http.method.ScxHttpMethodmethod()cool.scx.http.peer_info.PeerInforesponse()cool.scx.http.uri.ScxURIuri()cool.scx.http.version.HttpVersionversion()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.http.headers.ScxHttpHeadersReadHelper
contentEncoding, contentLength, contentType, cookies, getCookie, getHeader, getHeader, getSetCookie, setCookiesMethods inherited from interface cool.scx.http.ScxHttpServerRequest
getQuery, path, queryMethods inherited from interface cool.scx.websocket.ScxServerWebSocketHandshakeRequest
secWebSocketKey, secWebSocketVersion, webSocket
-
Constructor Details
-
Http1ServerWebSocketHandshakeRequest
public Http1ServerWebSocketHandshakeRequest(Http1ServerConnection connection, Http1RequestLine requestLine, Http1Headers headers, InputStream bodyInputStream, WebSocketOptions webSocketOptions)
-
-
Method Details
-
response
- Specified by:
responsein interfacecool.scx.http.ScxHttpServerRequest- Specified by:
responsein interfaceScxServerWebSocketHandshakeRequest
-
method
public cool.scx.http.method.ScxHttpMethod method()- Specified by:
methodin interfacecool.scx.http.ScxHttpServerRequest
-
uri
public cool.scx.http.uri.ScxURI uri()- Specified by:
uriin interfacecool.scx.http.ScxHttpServerRequest
-
version
public cool.scx.http.version.HttpVersion version()- Specified by:
versionin interfacecool.scx.http.ScxHttpServerRequest
-
headers
public cool.scx.http.headers.ScxHttpHeaders headers()- Specified by:
headersin interfacecool.scx.http.headers.ScxHttpHeadersReadHelper- Specified by:
headersin interfacecool.scx.http.ScxHttpServerRequest
-
body
public cool.scx.http.body.ScxHttpBody body()- Specified by:
bodyin interfacecool.scx.http.ScxHttpServerRequest
-
remotePeer
public cool.scx.http.peer_info.PeerInfo remotePeer()- Specified by:
remotePeerin interfacecool.scx.http.ScxHttpServerRequest
-
localPeer
public cool.scx.http.peer_info.PeerInfo localPeer()- Specified by:
localPeerin interfacecool.scx.http.ScxHttpServerRequest
-