06-26-2014 09:34 AM - edited 06-26-2014 10:44 AM
I am facing some difficulties with HttpFilter.
I have read on a number of forum about calling HttpFilterRegistry.registerFilter("www.name.com","com.sample.httpFilter"); in the main to register the filter and
implement a protocol class that will detect the www.name.com and run the app.
However, so far, I have not manage to start the applicationn from the browser using the url I have in my project
I am probably missing something but I m not sure what it is.
I have tried the httpfilterdemo but still did not work.
a sample code I have tried is attached
06-26-2014 08:41 PM
I suggest you read the documentation, then think about how you would describe, in words, what this API call actually does:
Once you have figured out what this command does, then you will appreciate that you need to create a Protocol class with the package name "com.sample.httpFilter".
06-27-2014 03:01 AM
I have read the documentation and I have already implemented a Protocol.java class in the package com.sample.httpFilter prior to posting my question here. I only put the 2 together in the attachment to show the code I have written.
I have tested the httpfilterdemo as well, still,the app does not start when I open the link from the browser.