Re: How to properly map a filter in tomcat embedded

2016-08-28 Thread John D. Ament
On Sun, Aug 28, 2016 at 5:07 AM Mark Thomas wrote: > On 28 August 2016 02:33:00 BST, "John D. Ament" > wrote: > >Hi, > > > >I have this pretty straight forward case of starting an instance of > >tomcat > >and bringing in a filter. > > > > >When starting this up (Just running in a plain JUnit te

Re: How to properly map a filter in tomcat embedded

2016-08-28 Thread Mark Thomas
On 28 August 2016 02:33:00 BST, "John D. Ament" wrote: >Hi, > >I have this pretty straight forward case of starting an instance of >tomcat >and bringing in a filter. >When starting this up (Just running in a plain JUnit test), the >container >is running however making requests to localhost:8080

How to properly map a filter in tomcat embedded

2016-08-27 Thread John D. Ament
Hi, I have this pretty straight forward case of starting an instance of tomcat and bringing in a filter. Tomcat tomcat = new Tomcat(); tomcat.setPort(8080); File base = new File("."); Context ctx = tomcat.addContext("", base.getAbsolutePath()); String filte