Hello,

I am trying to set request filter at host level programatticaly for
Embedded Tomcat. It doesn't seem like working.

Anyone can point out what i am doing wrong or what i am supposed to do.
Here, is the Code Snippet that i am using:

host = embedded.createHost("localhost", getPath() + "/webapps");

RemoteAddrValve filter = new RemoteAddrValve();

filter.setContainer(host);

filter.setDeny("127.0.0.1");

Thanks in advance.

Chirayu Shah

 

Reply via email to