- java.lang.Object
-
- swim.system.DownlinkView
-
- All Implemented Interfaces:
Downlink
,Link
,Observable<Object>
,Log
- Direct Known Subclasses:
WarpDownlinkView
public abstract class DownlinkView extends Object implements Downlink
-
-
Field Summary
Fields Modifier and Type Field Description protected CellContext
cellContext
protected Object
observers
protected Stage
stage
-
Constructor Summary
Constructors Constructor Description DownlinkView(CellContext cellContext, Stage stage, Object observers)
-
Method Summary
-
-
-
Field Detail
-
cellContext
protected final CellContext cellContext
-
stage
protected final Stage stage
-
observers
protected volatile Object observers
-
-
Constructor Detail
-
DownlinkView
public DownlinkView(CellContext cellContext, Stage stage, Object observers)
-
-
Method Detail
-
cellContext
public final CellContext cellContext()
-
downlinkModel
public abstract DownlinkModel<?> downlinkModel()
-
stage
public final Stage stage()
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceLink
-
securityProtocol
public String securityProtocol()
- Specified by:
securityProtocol
in interfaceLink
-
cipherSuite
public String cipherSuite()
- Specified by:
cipherSuite
in interfaceLink
-
localAddress
public InetSocketAddress localAddress()
- Specified by:
localAddress
in interfaceLink
-
localIdentity
public Identity localIdentity()
- Specified by:
localIdentity
in interfaceLink
-
localPrincipal
public Principal localPrincipal()
- Specified by:
localPrincipal
in interfaceLink
-
localCertificates
public Collection<Certificate> localCertificates()
- Specified by:
localCertificates
in interfaceLink
-
remoteAddress
public InetSocketAddress remoteAddress()
- Specified by:
remoteAddress
in interfaceLink
-
remoteIdentity
public Identity remoteIdentity()
- Specified by:
remoteIdentity
in interfaceLink
-
remotePrincipal
public Principal remotePrincipal()
- Specified by:
remotePrincipal
in interfaceLink
-
remoteCertificates
public Collection<Certificate> remoteCertificates()
- Specified by:
remoteCertificates
in interfaceLink
-
observe
public DownlinkView observe(Object newObserver)
-
unobserve
public DownlinkView unobserve(Object oldObserver)
-
didConnect
public abstract DownlinkView didConnect(DidConnect didConnect)
- Specified by:
didConnect
in interfaceDownlink
-
didDisconnect
public abstract DownlinkView didDisconnect(DidDisconnect didDisconnect)
- Specified by:
didDisconnect
in interfaceDownlink
-
didClose
public abstract DownlinkView didClose(DidClose didClose)
-
didFail
public abstract DownlinkView didFail(DidFail didFail)
-
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()
-
trace
public void trace(Object message)
Description copied from interface:Log
Logs a trace-level message.
-
debug
public void debug(Object message)
Description copied from interface:Log
Logs a debug-level message.
-
info
public void info(Object message)
Description copied from interface:Log
Logs an info-level message.
-
warn
public void warn(Object message)
Description copied from interface:Log
Logs a warn-level message.
-
error
public void error(Object message)
Description copied from interface:Log
Logs an error-level message.
-
-