AdClickThruServlet Class

com.bea.p13n.ad.servlets
AdClickThruServlet Class

public class AdClickThruServlet

    extends HttpServlet
    implements AdConstants

This servlet tracks ad click thru events. It will create an AdClickThruEvent and then redirect to the target URL for the ad.

The URL for the click thru must contain two parameters:

This servlet expects the AdService to be at java:comp/env/ejb/AdService and the AdBucketService to be at java:comp/env/ejb/AdBucketService.


Hierarchy
Object
  GenericServlet
    HttpServlet
      AdClickThruServlet
All Implemented Interfaces

AdConstants, Serializable, Servlet, ServletConfig

Constructor Summary

AdClickThruServlet()

 

Method Summary

public void
doGet(HttpServletRequest request, HttpServletResponse response)
The doGet handles two types of content depending upon the 'type' parameter to the URL.
 
Methods from  javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods from  javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, service
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 
Methods from interface javax.servlet.ServletConfig
getInitParameter, getInitParameterNames, getServletContext, getServletName
 

Constructor Detail

AdClickThruServlet

public AdClickThruServlet()
 

Method Detail

doGet(HttpServletRequest, HttpServletResponse) Method

public void doGet(HttpServletRequest request, 
                  HttpServletResponse response)
throws ServletException, IOException
The doGet handles two types of content depending upon the 'type' parameter to the URL. If type='newwindow' then we create a new window and display the ad content there. Otherwise we do the ad click thru functionality.

Overrides
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)

Parameters

request
The HTTP request object
response
the HTTP response object

Exceptions

ServletException
IOException