Class InetAccessHandler

  • All Implemented Interfaces:
    Handler, HandlerContainer, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

    @Deprecated(since="2021-05-27")
    public class InetAccessHandler
    extends HandlerWrapper
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    InetAddress Access Handler

    Controls access to the wrapped handler using the real remote IP. Control is provided by and IncludeExcludeSet over a InetAddressSet. This handler uses the real internet address of the connection, not one reported in the forwarded for headers, as this cannot be as easily forged.

    Additionally, there may be times when you want to only apply this handler to a subset of your connectors. In this situation you can use connectorNames to specify the connector names that you want this IP access filter to apply to.

    • Constructor Detail

      • InetAccessHandler

        public InetAccessHandler()
        Deprecated.
    • Method Detail

      • clear

        public void clear()
        Deprecated.
        Clears all the includes, excludes, included connector names and excluded connector names.
      • include

        public void include​(java.lang.String pattern)
        Deprecated.
        Includes an InetAddress pattern
        Parameters:
        pattern - InetAddress pattern to include
        See Also:
        InetAddressSet
      • include

        public void include​(java.lang.String... patterns)
        Deprecated.
        Includes InetAddress patterns
        Parameters:
        patterns - InetAddress patterns to include
        See Also:
        InetAddressSet
      • exclude

        public void exclude​(java.lang.String pattern)
        Deprecated.
        Excludes an InetAddress pattern
        Parameters:
        pattern - InetAddress pattern to exclude
        See Also:
        InetAddressSet
      • exclude

        public void exclude​(java.lang.String... patterns)
        Deprecated.
        Excludes InetAddress patterns
        Parameters:
        patterns - InetAddress patterns to exclude
        See Also:
        InetAddressSet
      • includeConnector

        public void includeConnector​(java.lang.String name)
        Deprecated.
        Includes a connector name.
        Parameters:
        name - Connector name to include in this handler.
      • excludeConnector

        public void excludeConnector​(java.lang.String name)
        Deprecated.
        Excludes a connector name.
        Parameters:
        name - Connector name to exclude in this handler.
      • includeConnectors

        public void includeConnectors​(java.lang.String... names)
        Deprecated.
        Includes connector names.
        Parameters:
        names - Connector names to include in this handler.
      • excludeConnectors

        public void excludeConnectors​(java.lang.String... names)
        Deprecated.
        Excludes connector names.
        Parameters:
        names - Connector names to exclude in this handler.
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Overrides:
        dump in class ContainerLifeCycle
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable