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 class defines the type(direction) of data exchanging between
19: * QuickServer and client socket.
20: * @since 1.2
21: */
22: public class DataType {
23: private String type;
24:
25: private DataType(String type) {
26: this .type = type;
27: }
28:
29: public String toString() {
30: return type;
31: }
32:
33: /**
34: * Incoming data type for {@link ClientHandler}
35: */
36: public static final DataType IN = new DataType("Incoming");
37: /**
38: * Outgoing data type for {@link ClientHandler}
39: */
40: public static final DataType OUT = new DataType("Outgoing");
41: }
|