public abstract class PacketParserFactory extends Object
| Constructor and Description |
|---|
PacketParserFactory() |
| Modifier and Type | Method and Description |
|---|---|
static PacketParser |
createAgent(String key)
Static create method that performs the PacketParser search and handles the
configuration and setup.
|
abstract PacketParser |
createPacketParser(String key)
Creates an instance of the given PacketParser
|
protected static PacketParserFactory |
findAgentFactory(String key)
Searches for a PacketParserFactory by using the given key.
|
abstract String |
getName() |
public abstract PacketParser createPacketParser(String key) throws Exception
key - the name of the required packet parser for the agent.Exception - if an error occurs while creating the PacketParser instance.public abstract String getName()
public static PacketParser createAgent(String key) throws Exception
key - the name of the desired PacketParser type.Exception - if an error occurs while creating the PacketParser instance.protected static PacketParserFactory findAgentFactory(String key) throws IOException
key - The name of the PacketParserFactory that should be located.IOException - if an error occurs while locating the factory.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.