Class Server
java.lang.Object
org.glassfish.grizzly.samples.simpleauth.Server
Server implementation, which echoes message, only if client was authenticated :)
Client and server exchange String based messages:
(1)
MultiLinePacket = command
*(parameter LF)
LF
parameter = TEXT (ASCII)
Server filters are built in a following way:
TransportFilter - reads/writes data from/to network
MultiStringFilter - translates Buffer <-> List<String>
MultiLineFilter - translates String <-> MultiLinePacket (see 1)
ServerAuthFilter - checks authentication header in an incoming packets.
EchoFilter - sends echo to a client.- Author:
- Alexey Stashok
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HOST
- See Also:
-
PORT
public static final int PORT- See Also:
-
-
Constructor Details
-
Server
public Server()
-
-
Method Details
-
main
- Throws:
IOException
-