public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  long time=System.currentTimeMillis();
  request.getSession(true);
  String url=getTargetURL(request);
  if (!response.isCommitted())   response.sendRedirect(url);
  response.flushBuffer();
  log.fine("redirect - " + url);
  saveClick(request,url);
  log.fine(url + " - " + (System.currentTimeMillis() - time)+ "ms");
}

public void doGet ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { long time = System . currentTimeMillis ( ) ; request . getSession ( true ) ; String url = getTargetURL ( request ) ; if ( ! response . isCommitted ( ) ) response . sendRedirect ( url ) ; response . flushBuffer ( ) ; log . fine ( "redirect - " + url ) ; saveClick ( request , url ) ; log . fine ( url + " - " + ( System . currentTimeMillis ( ) - time ) + "ms" ) ; }
process the http get request .
