How to execute webservice on click of a image in table

Hi All
I have a table in which an column is an link (image) . My code looks like this

table.addGeneratedColumn(“last Report”, new Table.ColumnGenerator() {
public Component generateCell(Table source, Object itemId,
Object columnId) {

          Link l = new Link();
          l.setResource(new ExternalResource("http://www.google.com"));
          
          l.setIcon(icon);
        
          return l;

            }
          
        } );

once i click on the link instead of opening google browser, I want to execute some webservice how to achieve it

can anyone please help

Thanks in Advance