net.i2p.i2ptunnel.access

## Class FilterFactory

- java.lang.Object
- - net.i2p.i2ptunnel.access.FilterFactory

-     public class FilterFactory
      extends Object

  Factory for incoming connection filters. Only public class in this package.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FilterFactory()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static StatefulConnectionFilter` | `createFilter(I2PAppContext context, File definition)` Creates an instance of IncomingConnectionFilter based on the definition contained in the given file.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FilterFactory

          public FilterFactory()

  - ### Method Detail

    - #### createFilter

          public static StatefulConnectionFilter createFilter(I2PAppContext context,
                                                              File definition)
                                                       throws IOException,
                                                              InvalidDefinitionException

      Creates an instance of IncomingConnectionFilter based on the definition contained in the given file.
      Parameters:
        `context` - the context this is running in
        `definition` - file containing the filter definition
      Throws:
        `IOException`
        `InvalidDefinitionException`