Class PortFilter

  • All Implemented Interfaces:
    Filter, Nameable, PathConfigProcessor
    Direct Known Subclasses:
    SslFilter

    public class PortFilter
    extends AuthorizationFilter
    A Filter that requires the request to be on a specific port, and if not, redirects to the same URL on that port.

    Example config:

     [filters]
     port.port = 80
     

    [urls] /some/path/** = port # override for just this path: /another/path/** = port[8080]

    Since:
    1.0