}
});
}
public static void main(String[] args) {
Display display = new Display();
ExternalLoginWindow slw =
new ExternalLoginWindow(
new ExternalLoginListener()
{
public void
cookiesFound(
ExternalLoginWindow window,String cookies)
{
System.out.println( "Cookies found: " + cookies );
}
public void
canceled(
ExternalLoginWindow window)
{
System.out.println( "Cancelled" );
}
public void
done(
ExternalLoginWindow window,String cookies)
{
System.out.println( "Done" );
}
},
"test",
"http://www.sf.net/",
false,
WebEngine.AM_PROXY,
true );
while(!slw.shell.isDisposed()) {
if(!display.readAndDispatch()) {
display.sleep();
}
}
System.out.println( "Found httponly cookies=" + slw.proxyCaptureModeRequired());
}