This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | Wed Sep 24 18:05:02 -0700 2008 | |
| |
TODO | Wed Sep 24 18:04:02 -0700 2008 | |
| |
build.xml | Thu Sep 25 14:33:31 -0700 2008 | |
| |
client.sh | Wed Sep 24 14:44:25 -0700 2008 | |
| |
etc/ | Wed Sep 24 14:44:57 -0700 2008 | |
| |
lib/ | Wed Sep 24 14:44:57 -0700 2008 | |
| |
src/ | Mon Sep 29 10:30:09 -0700 2008 |
README
---------------------------------------------------- campfireclient-0.1dev Java API for connecting to Campfire, Command-line client using the API ---------------------------------------------------- QUICKSTART ---------------------------------------------------- 1. ant jar 2. ./client.sh -u user@example.com -p pass -s subdomain [-S use SSL] 3. Presto! ---------------------------------------------------- REQUIREMENTS ---------------------------------------------------- Java 1.5+ Ant 1.7+ HtmlUnit and its dependencies are packaged up in /lib. ---------------------------------------------------- OVERVIEW ---------------------------------------------------- This package provides: - org.ubergibson.campfireclient.CampfireClient Connects to a Campfire server, and provides methods for doing things like joining rooms, collecting messages, and speaking. - org.ubergibson.campfireclient.ConsoleClient Simple command-line Campfire client; extends CampfireClient and shows how one might use the API to create a new client. ---------------------------------------------------- TECHNICAL ---------------------------------------------------- This package depends heavily on HtmlUnit and its multitude of sub-dependencies; it works by emulating a browser, scraping things from the DOM. ConsoleClient uses gnu's Java getOpt to parse command-line options. It collects new messages by adding a hook into Campfire.Responders, which dispatches alerts(). HtmlUnit provides a mechanism for handling alert events, and the client's ability to receive new messages is built on this. The class tree is more or less built out, but little actually functions. Advanced things like being in multiple rooms, receiving notifications about comings and goings of people in the room, and changing user settings, have yet to be implemented. But it all kinda works :) ---------------------------------------------------- BUGS ---------------------------------------------------- There are a lot. A big one right now is duplicate messages showing up and being printed. Maybe CampfireClient could store the ID of the latest message, and compare it against any new ones before it notifies the MessageHandler?







