Provides a basic and generic support for JAC thin clients.
The main class of this package is the AbstractServer
class. It defines all the methods that a programmer should implement
to support any kind of thin client that respects the Jac Thinclient
Protocol (JTP) specifications.
The JTP defines 6 requests. All of them takes as a first
parameter the session ID (sid) that must be unique for each client.
- viewRequest(sid,jid): allows the client to open a view
on an object called "jid" within the accessed JAC container
- refreshRequest(sid): allows the client to refresh the
current view
- newRequest(sid,className): allows the client to
instantiate a new object of the given class and opens a view on
this new object
- closeRequest(sid): allows the client to close the current
wiew (the previous view is re-opened)
- invokeRequest(sid,jid,methodName): allows the client to
invoke a method called "method" on an object called "jid" within the
accesed JAC container; if some parameters are needed by the invoked
method, the server will automatically open an input form to allow
the user to fill their values and that invocation process is
suspended until an input request occurs
- inputRequest(sid,methodName,params): allows the client
to give to the server the parameters values that correspond to the
given method invocation (this request should be send when the
invoke request ask the client for the parameters); it then restart
the waiting invocation request
- cancelInputRequest(sid,methodName): allows the client
to cancel the current invocation during the parameters imput
process
As a simple instance, you can refer to the
org.objectweb.jac.aspects.gui.WebGui
class that implements a server for
WEB clients (a simple kind of thin clients).
Related Documentation
For overviews, sources, tutorials, examples, guides, and tool documentation, please see: