- java.lang.Object
-
- swim.web.WebRequest
-
- Direct Known Subclasses:
WebServerRequest
public abstract class WebRequest extends Object
-
-
Constructor Summary
Constructors Constructor Description WebRequest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description WebResponse
accept(HttpResponder<?> responder)
<H extends HttpHeader>
HgetHttpHeader(Class<H> headerClass)
HttpHeader
getHttpHeader(String name)
FingerTrieSeq<HttpHeader>
httpHeaders()
HttpMethod
httpMethod()
HttpPayload<?>
httpPayload()
abstract HttpRequest<?>
httpRequest()
Uri
httpUri()
UriPath
httpUriPath()
UriQuery
httpUriQuery()
HttpVersion
httpVersion()
WebResponse
reject()
WebResponse
reject(HttpResponder<?> responder)
WebResponse
respond(HttpResponse<?> response)
abstract UriPath
routePath()
abstract WebRequest
routePath(UriPath routePath)
WebResponse
upgrade(WarpSocket warpSocket, WsResponse wsResponse, WarpSettings warpSettings)
WebResponse
upgrade(WebSocket<?,?> webSocket, WsResponse wsResponse, WsSettings wsSettings)
-
-
-
Method Detail
-
httpRequest
public abstract HttpRequest<?> httpRequest()
-
httpMethod
public HttpMethod httpMethod()
-
httpUri
public Uri httpUri()
-
httpUriPath
public UriPath httpUriPath()
-
httpUriQuery
public UriQuery httpUriQuery()
-
httpVersion
public HttpVersion httpVersion()
-
httpHeaders
public FingerTrieSeq<HttpHeader> httpHeaders()
-
getHttpHeader
public HttpHeader getHttpHeader(String name)
-
getHttpHeader
public <H extends HttpHeader> H getHttpHeader(Class<H> headerClass)
-
httpPayload
public HttpPayload<?> httpPayload()
-
routePath
public abstract UriPath routePath()
-
routePath
public abstract WebRequest routePath(UriPath routePath)
-
accept
public WebResponse accept(HttpResponder<?> responder)
-
respond
public WebResponse respond(HttpResponse<?> response)
-
upgrade
public WebResponse upgrade(WebSocket<?,?> webSocket, WsResponse wsResponse, WsSettings wsSettings)
-
upgrade
public WebResponse upgrade(WarpSocket warpSocket, WsResponse wsResponse, WarpSettings warpSettings)
-
reject
public WebResponse reject(HttpResponder<?> responder)
-
reject
public WebResponse reject()
-
-