- java.lang.Object
-
- swim.runtime.DownlinkView
-
- All Implemented Interfaces:
swim.api.Downlink,swim.api.Link,swim.observable.Observable<Object>,swim.util.Log
- Direct Known Subclasses:
WarpDownlinkView
public abstract class DownlinkView extends Object implements swim.api.Downlink
-
-
Field Summary
Fields Modifier and Type Field Description protected CellContextcellContextprotected Objectobserversprotected swim.concurrent.Stagestage
-
Constructor Summary
Constructors Constructor Description DownlinkView(CellContext cellContext, swim.concurrent.Stage stage, Object observers)
-
Method Summary
-
-
-
Field Detail
-
cellContext
protected final CellContext cellContext
-
stage
protected final swim.concurrent.Stage stage
-
observers
protected volatile Object observers
-
-
Constructor Detail
-
DownlinkView
public DownlinkView(CellContext cellContext, swim.concurrent.Stage stage, Object observers)
-
-
Method Detail
-
cellContext
public final CellContext cellContext()
-
downlinkModel
public abstract DownlinkModel<?> downlinkModel()
-
stage
public final swim.concurrent.Stage stage()
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceswim.api.Link
-
isRemote
public boolean isRemote()
- Specified by:
isRemotein interfaceswim.api.Link
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceswim.api.Link
-
securityProtocol
public String securityProtocol()
- Specified by:
securityProtocolin interfaceswim.api.Link
-
cipherSuite
public String cipherSuite()
- Specified by:
cipherSuitein interfaceswim.api.Link
-
localAddress
public InetSocketAddress localAddress()
- Specified by:
localAddressin interfaceswim.api.Link
-
localIdentity
public swim.api.auth.Identity localIdentity()
- Specified by:
localIdentityin interfaceswim.api.Link
-
localPrincipal
public Principal localPrincipal()
- Specified by:
localPrincipalin interfaceswim.api.Link
-
localCertificates
public Collection<Certificate> localCertificates()
- Specified by:
localCertificatesin interfaceswim.api.Link
-
remoteAddress
public InetSocketAddress remoteAddress()
- Specified by:
remoteAddressin interfaceswim.api.Link
-
remoteIdentity
public swim.api.auth.Identity remoteIdentity()
- Specified by:
remoteIdentityin interfaceswim.api.Link
-
remotePrincipal
public Principal remotePrincipal()
- Specified by:
remotePrincipalin interfaceswim.api.Link
-
remoteCertificates
public Collection<Certificate> remoteCertificates()
- Specified by:
remoteCertificatesin interfaceswim.api.Link
-
observe
public DownlinkView observe(Object newObserver)
- Specified by:
observein interfaceswim.api.Downlink- Specified by:
observein interfaceswim.api.Link- Specified by:
observein interfaceswim.observable.Observable<Object>
-
unobserve
public DownlinkView unobserve(Object oldObserver)
- Specified by:
unobservein interfaceswim.api.Downlink- Specified by:
unobservein interfaceswim.api.Link- Specified by:
unobservein interfaceswim.observable.Observable<Object>
-
didConnect
public abstract DownlinkView didConnect(swim.api.function.DidConnect didConnect)
- Specified by:
didConnectin interfaceswim.api.Downlink
-
didDisconnect
public abstract DownlinkView didDisconnect(swim.api.function.DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceswim.api.Downlink
-
didClose
public abstract DownlinkView didClose(swim.api.function.DidClose didClose)
- Specified by:
didClosein interfaceswim.api.Downlink
-
didFail
public abstract DownlinkView didFail(swim.api.function.DidFail didFail)
- Specified by:
didFailin interfaceswim.api.Downlink
-
dispatchDidConnect
public boolean dispatchDidConnect(boolean preemptive)
-
dispatchDidDisconnect
public boolean dispatchDidDisconnect(boolean preemptive)
-
dispatchDidClose
public boolean dispatchDidClose(boolean preemptive)
-
dispatchDidFail
public boolean dispatchDidFail(Throwable cause, boolean preemptive)
-
downlinkDidConnect
public void downlinkDidConnect()
-
downlinkDidDisconnect
public void downlinkDidDisconnect()
-
downlinkDidClose
public void downlinkDidClose()
-
downlinkDidFail
public void downlinkDidFail(Throwable error)
-
createDownlinkModel
public abstract DownlinkModel<?> createDownlinkModel()
-
open
public abstract DownlinkView open()
- Specified by:
openin interfaceswim.api.Downlink
-
close
public void close()
- Specified by:
closein interfaceswim.api.Link
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
fail
public void fail(Object message)
- Specified by:
failin interfaceswim.util.Log
-
-