public class Client extends Object
Server
and checks
the response.
Client and server exachange 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
StringFilter
- translates Buffer <-> String. StringFilter reads just single line at a time.
MultiLineFilter
- translates 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.Constructor and Description |
---|
Client() |
Copyright © 2015 Oracle Corporation. All rights reserved.