public interface KrakenProtocolConfigurationBuilder
| Modifier and Type | Method and Description |
|---|---|
KrakenProtocolConfigurationBuilder |
bindProtocol(String bindFrom,
String bindTo)
Bind a protocol handler to another protocol handler, i.e.
|
KrakenProtocolConfiguration |
buildProtocolConfiguration()
Builds the protocol configuration that has been set up until now
|
void |
resetCurrentProtocolConfiguration()
Resets all settings of the current protocol configuration
|
KrakenProtocolConfigurationBuilder |
setCurrentProtocolIdentifier(String currentProtocolIdentifier)
Set the protocol identifier to use for this protocol configuration.
|
KrakenProtocolConfigurationBuilder |
setPcapHandler(PcapHandler<PcapActivityListener> pcapHandler)
Set the pcap packet input stream for this application layer protocol parser
|
KrakenProtocolConfigurationBuilder |
setPortSpecification(PortSpecification transportProtocolPortSpec)
Set a transport layer filter for the parser of this protocol
|
KrakenProtocolConfigurationBuilder |
setTransportProtocolMappingFactory(KrakenTransportLayerMappingFactory mappingFactory)
Set the transport layer mapping factory to use for building transport layer mapping strategies
|
KrakenProtocolConfigurationBuilder |
setTransportProtocolMappingStrategy(String strategy)
Set the transport layer mapping strategy to use for this protocol
|
KrakenProtocolConfiguration buildProtocolConfiguration()
KrakenProtocolConfigurationBuilder setPortSpecification(PortSpecification transportProtocolPortSpec)
transportProtocolPortSpec - the port specification for this application layer protocol parserKrakenProtocolConfigurationKrakenProtocolConfigurationBuilder setTransportProtocolMappingStrategy(String strategy)
strategy - the TransportLayerMappingStrategy to useKrakenTransportLayerMappingFactoryKrakenProtocolConfigurationBuilder setTransportProtocolMappingFactory(KrakenTransportLayerMappingFactory mappingFactory)
mappingFactory - the transport layer mapping factory to useKrakenProtocolConfigurationBuilder setPcapHandler(PcapHandler<PcapActivityListener> pcapHandler)
pcapHandler - the Pcap packet input streamvoid resetCurrentProtocolConfiguration()
KrakenProtocolConfigurationBuilder bindProtocol(String bindFrom, String bindTo)
bindFrom - the wild protocol identifier which can be mapped by the protocol registry to
an existing protocol handler, and that will be bound to the handler of the bindTo protocolbindTo - the wild protocol identifier which can be mapped by the protocol registry to
an existing protocol handler, and that will receive decoded data from the bindFrom handlerKrakenProtocolConfigurationBuilder setCurrentProtocolIdentifier(String currentProtocolIdentifier)
currentProtocolIdentifier - a protocol identifier (should be unique within this framework)Copyright © 2013–2015 Institute of networks and security. All rights reserved.