Package org.bsf.remoting.http

Allows a client to communicate with the server using http calls.

See:
          Description

Class Summary
HttpServiceFactory This implementation of ServiceFactory makes returns to the client DynamicProxies to encapsulate the client calls in http protocol.
HttpServiceInvocationHandler The HttpServiceInvocationHandler is used to transmit the user request to the correct object which can be the remote service in case of direct connection or the user session client in case of Session connection.
HttpServiceKey This class is used as a key for services map in the http session of the client.
HttpServiceRequest This class encapsulates the items of the client request.
HttpServiceResponse This class holds the result of a client call.
HttpSessionClient This class handle the http protocole for the application server communication.
HttpSessionServer This is the servlet that intercept all the client calls and transmits these to the EJBs.
 

Package org.bsf.remoting.http Description

Allows a client to communicate with the server using http calls.

The client asks for a service using the HttpServiceFactory. He gets a reference on a service which is in reality a dynamic proxy (@see java.lang.reflect.Proxy). This Proxy dispatches all the method invocation to the Service which implements the InvocationHandler interface. The Service then delegates the invocation to the HttpSessionClient singleton. This class is responsible for the communication with the server. It encapsulates the method invocation in http request using HttpServiceRequest instances. On theserver, the servlet HttpSessionServer gets the HttpServiceRequest and performs the invocation on the EJB reference corresponding to the service.