org.norther.tammi.spray.protocol
Interface IpMaskFilter

All Superinterfaces:
Configurable, Filter
All Known Implementing Classes:
DefaultIpMaskFilter

public interface IpMaskFilter
extends Filter, Configurable

An interface to filter masking IP requests. Masks are specified as properties. The filter checks first blocked addresses, then passed addresses and lastly masks. If masks overlap, block masks has preference over pass masks. By default, all requests are passed through the filter.

  • pass.address=
    defines a new allowed address.
  • block.address=
    defines a new denied address.
  • pass.mask= defines a new mask of allowed addresses.
  • block.mask= defines a new mask of denied addresses.
  • Author:
    Ilkka Priha

    Field Summary
    static String BLOCK_ADDRESS
              The block address filter.
    static String BLOCK_MASK
              The block mask filter.
    static String PASS_ADDRESS
              The pass address filter.
    static String PASS_MASK
              The pass mask filter.
     
    Method Summary
     
    Methods inherited from interface javax.servlet.Filter
    destroy, doFilter, init
     
    Methods inherited from interface org.norther.tammi.core.config.Configurable
    addProperty, addProperty, clearProperties, containsProperty, getConfigKey, getProperties, getProperty, getPropertyFilePath, indexOfProperty, propertyMap, propertyMap, removeProperty, removeProperty, setConfigKey, setProperties, setProperty, setPropertyFilePath, setPropertyFilePath, storeProperties
     

    Field Detail

    PASS_ADDRESS

    static final String PASS_ADDRESS
    The pass address filter.

    See Also:
    Constant Field Values

    BLOCK_ADDRESS

    static final String BLOCK_ADDRESS
    The block address filter.

    See Also:
    Constant Field Values

    PASS_MASK

    static final String PASS_MASK
    The pass mask filter.

    See Also:
    Constant Field Values

    BLOCK_MASK

    static final String BLOCK_MASK
    The block mask filter.

    See Also:
    Constant Field Values


    Copyright © 2004 The Norther Organization. All rights reserved.