RobertoBifulco.it

  • topics
  • publications
  • il gatto
  • account
Home › Rich Client Web Applications: the future so near › Chapter V

V.1Architecture

Roberto Bifulco — Mon, 02/11/2008 - 15:06

The application architecture follows the classic Model View Controller pattern.


Figure 6: The MVC pattern



 

The three model parts are deployed on the client and on the server, as shown in Figure 7.


Figure 7: Application deployment



 

The client is entirely responsible for the view, the same for the server as regard as the model. The controller is shared between the two entities because elaborations and validations are needed on both sides.

The server, using RPC, offers a service interface, defined through GJPR. The resulting Java Interface is the next:

package it.robertobifulco.web.simplechat.client.service;

public interface ChatRoom{

public boolean addMessage(String from, String date, String message);

public String[] getMessages(int since);

public boolean addMember(String username);

public boolean removeMember(String username);

public String[] getMessageFrom(String username, String from, int since);

public boolean sendMessageTo(String from, String to, String date, String message);

public String[] getRoomMembers();

public int[] getStatus(String username);

public String[] getPrivateCommunications(String username);

}


 

Calling these methods it is possible to add an user to the chat or to remove it, add a message and manage private messages between users.

‹ Chapter V up V.2The polling problem ›
  • Printer-friendly version

nfl jerseys suppliers Fashion

Anonymous (not verified) — Mon, 01/02/2012 - 08:03

nfl jerseys suppliers Fashion brand
wholesale coach bags the trend of fashion
coach outlet Don't miss the chance it's very good
coach outlet store comfortable with it
wholesale designer handbags well known great
coach handbags outlet attractive and reasonable price
cheap coach online shopping
coach outlet store may most likely need
coach handbag outlet A good thing
authentic nfl jerseys for sale fashion designed
cheap authentic nfl jerseys together with lifestyle

  • reply

nfl jerseys

mostnfl (not verified) — Fri, 12/30/2011 - 14:27

New England Patriots Jerseys
Authentic New England Patriots Jerseys
Patriots Jerseys Sale
Premier New England Patriots Jerseys
Tom Brady Jersey
Wes Welker Jersey
Chad Ochocinco Jersey

  • reply

nfl jerseys

mostnfl (not verified) — Thu, 12/29/2011 - 09:33

Ed Reed Jersey were in Heath Miller Jersey the age of James Harrison Jersey teams changing jersey Greg Jennings Jersey designs on a regular basis so you Emmitt Smith Jersey can plunk down Eli Manning Jersey your Pierre Thomas Jersey $150 every few years because your favorite team added a stripe or jersey piping.Calvin Johnson Jersey

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Rich Client Web Applications: the future so near

  • Preface
  • Introduction
  • Chapter I
  • Chapter II
    • II.1Data serialization
    • II.2AJAX tools
  • Chapter III
    • III.1Attack Types
      • III.1.1Cross Site Scripting (XSS)
      • III.1.2Cross Site Request Forgeries (CSRF)
      • III.1.3JSON Hijacking
  • Chapter IV
    • IV.1RPC requirements
    • IV.2GJPR
  • Chapter V
    • V.1Architecture
    • V.2The polling problem
  • Bibliography
  • topics
  • publications
  • il gatto
  • account