最近在看browser嵌入,找到XULRunner,
http://developer.mozilla.org/cn/docs/%E5%88%9B%E5%BB%BA_XPCOM_%E7%BB%84%E4%BB%B6:%E4%BD%BF%E7%94%A8_XPCOM_%E7%BB%84%E4%BB%B6
创建 XPCOM 组件:使用 XPCOM 组件
http://developer.mozilla.org/en/docs/nsICookieManager
nsICookieManager
如何获得Cookie?
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg37871.html
Well I got it working, I think I was passing in the wrong ID. Here is the code if anyone else has this problem.
nsIServiceManager serviceManager = Mozilla.getInstance().getServiceManager();
nsICookieManager cookieManager = (nsICookieManager) serviceManager.getServiceByContractID("@mozilla.org/cookiemanager;1", nsICookieManager.NS_ICOOKIEMANAGER_IID);
nsISimpleEnumerator cookieEnumerator = cookieManager.getEnumerator();
while (cookieEnumerator.hasMoreElements()) {
// Not sure how to get the nsICookie Object. 400
nsICookie cookie = (nsICookie)cookieEnumerator.getNext().queryInterface(nsICookie.NS_ICOOKIE_IID);
System.out.println(cookie.getName());
System.out.println(cookie.getHost());
}
If anyone has a place to gather more information for using the JavaXPCOM other than the XUL Planet site I would love to know.
分享到:
相关推荐
附件中包含 xulrunner-1.8.1.2pre.en-US.win32.zip xulrunner的安装和配置实例.docx(详细说明) tyapp.rar(实例的源码)
xulrunner-1.8.0.4.en-US.linux-i686.tar
XULRUNNER 例子 XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and Thunderbird.
windows 32 jdk xulrunner10 DJNativeSwing
包含GeckoFx 33.09版本源码加对应版本XULrunner,提供完整的dll文件,直接可用
提示两个windows系统下的xulrunner,分别对应32位系统和64位系统。需要的朋友们请自行选择
xulrunner-3.6.26.en-US.win32 xulrunner-3.6.26.en-US.win32
在CentOS7上安装KETTLE8的时候用到的,解决了以下问题 org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME=''] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-mozilla...
xulrunner-1.9.2.source.tar.bz2
下载了此xulrunner 后还要下载相应的geckofx,可以到我的资料里下载,因为放在一起太大,无法上传,所以放开放。
不容易啊,研究了近一年的成果。不过只要你能掌握firefox的核心xulrunner以及xpcom技术,客户端的开发将会不是任何问题,包括跨平台,比如: mac os x, Linux。你所要关注的将会集中在核心技术的实现上。
浏览器的内核下载,Firefox浏览器的内核xulrunner。适用于64bit-Windows系统
浏览器的内核下载,Firefox浏览器的内核xulrunner。xulrunner-41.0.2.en-US.win32
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
xulrunner-1.9.2-gnome-support_1.9.2.17+build3+nobinonly-0ubuntu0.8.04.1_i386
xulrunner-win64-1.9.2.25.jar一个java Swing视图化展示工具
xulrunner-1.8.1.3.en-US.win32.zip
Java内嵌Mozilla浏览器内核必备 这里可以下载所有版本 http://download02.mozilla.org/pub/xulrunner/releases/
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
xulrunner-1.9.2.en-US.win32.sdk