@Override public void changed(StatusTextEvent event) { if(event.text.startsWith(AZCOOKIEMSG)) { String uriEncodedCookies =event.text.substring(AZCOOKIEMSG.length()); try { String cookies = URLDecoder.decode(uriEncodedCookies, "UTF-8"); if(listener != null) { listener.cookiesFound(cookies); } } catch (Exception e) { e.printStackTrace(); } } }
public void changed(StatusTextEvent event) { if(event.text.startsWith(AZCOOKIEMSG)) { String uriEncodedCookies =event.text.substring(AZCOOKIEMSG.length()); try { String cookies = URLDecoder.decode(uriEncodedCookies, "UTF-8"); if(listener != null) { listener.cookiesFound(cookies); } } catch (Exception e) { e.printStackTrace(); } } }
@Override public void changed(final StatusTextEvent event) { for (final IBrowserDocumentListener listener : new LinkedList<IBrowserDocumentListener>(documentListeners)) { listener.statusTextChanged(event.text); } }