Class Client
java.lang.Object
org.glassfish.grizzly.samples.simpleauth.Client
Client implementation, which sends a message to a
Server and checks
the response.
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 List<String> <-> MultiLinePacket (see 1)
ClientAuthFilter - checks, if client is authenticated. If not - initialize client authentication, and only then sends the message.
ClientFilter - client filter, which gets server echo and prints it out.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Client
public Client()
-
-
Method Details
-
main
- Throws:
Exception
-