- java.lang.Object
-
- swim.io.http.AbstractHttpResponder<T>
-
- swim.io.http.StaticHttpResponder<T>
-
- All Implemented Interfaces:
FlowContext
,HttpResponder<T>
,IpContext
public class StaticHttpResponder<T> extends AbstractHttpResponder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpResponse<T>
response
-
Fields inherited from class swim.io.http.AbstractHttpResponder
context
-
-
Constructor Summary
Constructors Constructor Description StaticHttpResponder(HttpResponse<T> response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doRespond(HttpRequest<T> request)
HttpResponse<T>
response()
-
Methods inherited from class swim.io.http.AbstractHttpResponder
become, cipherSuite, close, contentDecoder, didBecome, didDisconnect, didFail, didRequest, didRespond, didTimeout, flowControl, flowControl, flowControl, httpResponderContext, httpSettings, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol, setHttpResponderContext, willBecome, willRequest, willRespond, writeResponse
-
-
-
-
Field Detail
-
response
protected final HttpResponse<T> response
-
-
Constructor Detail
-
StaticHttpResponder
public StaticHttpResponder(HttpResponse<T> response)
-
-
Method Detail
-
response
public final HttpResponse<T> response()
-
doRespond
public void doRespond(HttpRequest<T> request)
- Specified by:
doRespond
in interfaceHttpResponder<T>
- Overrides:
doRespond
in classAbstractHttpResponder<T>
-
-