org.jnetstream.protocol
Interface ProtocolBinding
- All Superinterfaces:
- BindingResolver
public interface ProtocolBinding
- extends BindingResolver
Protocol binding is a link/binding between two different protocols. A source
protocol binds to a sink protocol. Then the sink protocol, when the time
comes, evaluates the expression within this binding to determine if the
source protocol is a candidate for the next protocol in the sequence of
protocol headers being decoded/dissected.
Use the getSourceName() to get the name of the protocol to which this binding
was definined. Use the getSinkName() to get the name of the protocol which
will evaluate the binding expression to determine if source protocol is
applicable as the next protocol in the sequence of headers.
You can also use the isLinked() method to determine if this binding has
actually been linked into the runtime environment and is ready to be applied.
Bindings may not neccessarily be linked as the Sink or the Source protocols
may not have been loaded yet. Most protocols are loaded ondemand, that is
only when they are needed. The bindings are applied when the protocol itself
is loaded, not before.
Use the Protocol.getSourceBindings() or Protocol.getSinkBindings() to get a
complete list of bindings for any given protocol. Of you can use
ProtocolRegistry.getBindings() to get a list of all the bindings currrently
loaded.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
getSource
Protocol getSource()
getSink
Protocol getSink()