org.glassfish.grizzly.samples.simpleauth
Class Client

java.lang.Object
  extended by org.glassfish.grizzly.samples.simpleauth.Client

public class Client
extends Object

Client implementation, which sends a message to a 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.

Author:
Alexey Stashok

Constructor Summary
Client()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013 Oracle Corporation. All Rights Reserved.