Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jChatBox.Service
Class Login

    java.lang.Object
      |
      +--jChatBox.Service.Login

Direct Known Subclasses:
  SystemLogin, UserLogin

public abstract class Login
extends java.lang.Object

This class defines a generic Login.

Constructor Summary
`Login()`

Method Summary
`abstract java.lang.String` | `doLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)` Login process.
`java.lang.String` | `getSysMessage()` Returns message or error.
`void` | `setSysMessage(java.lang.String message)` Sets message or error.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Login

    public Login()

Method Detail

### doLogin

    public abstract java.lang.String doLogin(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpSession session)

  Login process.
  Overide this method to add authentication/authorization.
  It must return Conf.JSPROOM when login succeeded (no exceptions).
  It must return null if login fails.

### setSysMessage

    public void setSysMessage(java.lang.String message)

  Sets message or error.

### getSysMessage

    public java.lang.String getSysMessage()

  Returns message or error.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD