01: /*
02: * This file is part of the QuickServer library
03: * Copyright (C) 2003-2005 QuickServer.org
04: *
05: * Use, modification, copying and distribution of this software is subject to
06: * the terms and conditions of the GNU Lesser General Public License.
07: * You should have received a copy of the GNU LGP License along with this
08: * library; if not, you can download a copy from <http://www.quickserver.org/>.
09: *
10: * For questions, suggestions, bug-reports, enhancement-requests etc.
11: * visit http://www.quickserver.org
12: *
13: */
14:
15: package org.quickserver.net.server;
16:
17: /**
18: * This is an interface that can be implemented by {@link ClientData}
19: * so that the client connected can be identified.
20: * One can search an client by using
21: * {@link QuickServer#findFirstClientById}, {@link QuickServer#findAllClientById},
22: * {@link QuickServer#findClientByKey}, {@link QuickServer#findAllClientByKey},
23: * {@link QuickServer#findAllClient}
24: * @since 1.3.1
25: */
26: public interface ClientIdentifiable {
27: /**
28: * Returns string (hash code) unique for that user connected.
29: */
30: public String getClientId();
31:
32: /**
33: * Returns string (hash code) unique for that client connected.
34: * used to differentiate client that share same user ids.
35: */
36: public String getClientKey();
37:
38: /**
39: * Returns some inforamtion for that client connected.
40: */
41: public String getClientInfo();
42: }
|