com.arsdigita.acs
Class Clickthrough
java.lang.Object
|
+--com.arsdigita.acs.FilterBase
|
+--com.arsdigita.acs.Clickthrough
- All Implemented Interfaces:
- Filter
- public class Clickthrough
- extends FilterBase
Logs clickthroughs from this site to foreign sites
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Clickthrough
public Clickthrough()
static void ()
filter
public int filter(HttpServletRequest req,
HttpServletResponse resp,
ServletContext ctx)
throws ACSException
- Handles a URL of the form /ct/local/URL?send_to=foreignURL.
usage: drop something that looks like this into your static .html
files
/ct/**local_url**?send_to=**foreign_url**
the initial /ct is what tells the AOLserver to come to this
system of code.
the rest of this system (reports) is located in /admin/click/
if either the local URL or the foreign URL aren't known
in the database, the clickthough server creates a row
in normal operation, the user is redirected immediately to the URL
specified by the send_to variable. Then the server thread
requests a database connection and sends the insert to the database
logs the clickthrough in the clickthough
- Returns:
- FILTER_RETURN