|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface CharCreationLibrary.LoginSession
This is the main login state machine transaction object. It allows the telnet session getting thread and i/o time to repeatedly call into the LoginSession object it creates until the object reports that it is completely done. A login session includes initial telnet negotiation, login prompts, the account menu, and all of character creation.
Method Summary | |
---|---|
java.lang.String |
acceptInput(Session session)
This strange method calls back into the given session for input from the user, if any is available. |
java.lang.String |
login()
The login name received in the first prompt after connection. |
CharCreationLibrary.LoginResult |
loginSystem(Session session)
Continues through the login state machine for the given session. |
void |
logoutLoginSession()
Puts the session into a "logged out" state, which means either back to the initial prompt, or back to the account menu, depending. |
boolean |
reset()
Set to true whenever the loginsystem needs the session to basically start the whole state machine over by re-creating the LoginSession object and calling in again. |
boolean |
skipInputThisTime()
Returns true if the loginsystem needs the session to skip any input it was previously asked for and simply call right back into the state machine. |
Method Detail |
---|
java.lang.String login()
CharCreationLibrary.LoginResult loginSystem(Session session) throws java.io.IOException
session
- the session trying to login
java.io.IOException
- any I/O errors that occurCharCreationLibrary.LoginResult
void logoutLoginSession()
boolean reset()
boolean skipInputThisTime()
java.lang.String acceptInput(Session session) throws java.net.SocketException, java.io.IOException
session
- the session to ask for input
java.net.SocketException
- a socket error that occurs
java.io.IOException
- some other I/O error that occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |