|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolBinding
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.
| Nested Class Summary | |
|---|---|
static interface |
ProtocolBinding.BindingBuilder
Private factory method for building bindings. |
| Method Summary | |
|---|---|
java.util.List |
getDependancies()
Returns the list of protocol dependencies. |
java.lang.String |
getExpression()
Returns the original NPL expression as a String. |
java.lang.String |
getSinkName()
Get the sink protocol. |
java.lang.String |
getSourceName()
Get the source protocol. |
boolean |
isLinked()
Checks if this binding has been linked into the runtime environment for the sink packet. |
| Method Detail |
|---|
java.lang.String getSourceName()
java.lang.String getSinkName()
java.lang.String getExpression()
java.util.List getDependancies()
boolean isLinked()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||