Hi everyone,
I started using Grizzly with Jersey in order to create a web service which works on a DB. This Server publishes an admin and a public endpoint.
While the public endpoint can be accessed without any authentication, the admin endpoint uses SSL to authenticate (both client and server).
Naturally I don't want the public endpoint to have access on my admin HttpHandler so what I need is a Filter which permits the access on the admin HttpHandler from the public NetworkListener.
So I created an AddOn which is then added to my public NetworkListener. And from that point I'm having problems finishing my filter.
The first thing is, that I don't know where to place the Filter in the FilterChain. I tried to place it after the HttpCodecFilter but the problem is, that I could not get the full address of the request (I only got localhost:19240 instead of localhost:19240/admin, which I would need to check if the admin Handler should be accessed).
The second thing is, that I don't know which of the methods of the Filter Interface I need to implement in order to make the Filter work correctly.
So my question is - can anybody help me out here? I read the documentation but it didn't help me figuring out the answer to the questions above.
Greetings,
Pascal