|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.game.PreLoginCommands
public class PreLoginCommands
Commands that can be executed using JSON calls before the user has sent a login packet; or when the user is in hte process of logging-in
| Constructor Summary | |
|---|---|
PreLoginCommands()
|
|
| Method Summary | |
|---|---|
static org.json.JSONObject |
do_batch(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
Handle a batch request |
static org.json.JSONObject |
do_finger(org.json.JSONObject jso,
AbstractUser u,
Room room)
Finger an user account to obtain basic public information about it |
static org.json.JSONObject |
do_getApple(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
Get the apple to get into, or out of, $Eden |
static org.json.JSONObject |
do_login(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
Handle a login request |
private static ServerThread |
findMyself(org.json.JSONObject result)
Find the AppiusClaudiusCaecus thread in which we're being called |
static String |
getRev()
Get the revision level of this file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreLoginCommands()
| Method Detail |
|---|
public static org.json.JSONObject do_batch(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
throws org.json.JSONException
jso - { userName: NAME, zone: ZONE, room: ROOM, auth:
$(sha1hex(pass + apple + sha1hex(d))), userName:
LOGIN, d: { 0: { c: CMD, d: {} }, 1: ... } }nil0 - unusednil1 - unused
org.json.JSONException - if the result JSO cannot be generated
public static org.json.JSONObject do_finger(org.json.JSONObject jso,
AbstractUser u,
Room room)
throws org.json.JSONException
jso - The JSON parameters passed to the finger command. The
only parameter interpreted is “id,” which must be the
user ID number whose public information is to be
returned.u - unusedroom - unused
GeneralUser.getPublicInfo()
org.json.JSONException - if the result set can't be created
public static org.json.JSONObject do_getApple(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
throws org.json.JSONException
jso - ignorednil0 - unusednil1 - unused
org.json.JSONException - if the reply can't be encoded in JSON form
for some reason...
public static org.json.JSONObject do_login(org.json.JSONObject jso,
AbstractUser nil0,
Room nil1)
throws org.json.JSONException
jso - { userName: LOGIN, password: PASS, zone: ZONE }nil0 - unusednil1 - unused
org.json.JSONException - if the result JSO cannot be generated
private static ServerThread findMyself(org.json.JSONObject result)
throws org.json.JSONException
result - a JSON result object into which errors can be
stored
AppiusClaudiusCaecus thread, or null if we
were called from some other thread
org.json.JSONException - if the error packet can't be generatedpublic static String getRev()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||