UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory UML Weekend Crash Course™ - To Parent Directory

crnarupa.singidunum.ac.rs
from crnarupa.singidunum.ac.rs More from this publisher
01.01.2015 Views

Session 28—Analysis and Architectural Design of a Web Application 295 Gateways that translate between WAP and HTTP. All you have to do is write JSP pages containing WML, specify the MIME content type for WML, and place them on your normal Web server. The WAP Gateway, which is usually provided by the wireless network provider, not by you, automatically takes care of the rest. Figure 28-6 shows a Deployment diagram with the hardware (traditional wired device, wireless device, WAP Gateway, and the Web Server). The components from Figure 28-5 are placed onto the nodes of the Deployment diagram to show where they will reside. Traditional Wired Device Web Browser Web Server JavaBeans Wireless Device like Cell Phone WAP Gateway JSP pages with WML content JSP pages with HTML content Micro Web Browser Figure 28-6 UML Deployment diagram, WAP Gateway REVIEW Because requirements gathering and analysis are more about the business problem than the technical solution to it, the process for these phases should not be any different for a Web system than for a non-Web system. One exception to this general rule is that the customer should consider additional technological factors such as scalability, reliability, availability, performance, and security — considerations that may not be as important when designing a standalone system. The Model View Controller (MVC) design pattern simplifies development and enhances maintainability by separating the data model, user interface views, and controller logic aspects of your system. MVC can be adapted to Java Web applications by separating the model into JavaBeans and the view into JSP pages. Session 29 will show you how to separate out the controller. MVC also makes it easier to have two views, such as a WML view and an HTML view. QUIZ YOURSELF 1. What additional kinds of technological factors should a customer consider with a Web system (See “Requirements Gathering.”) 2. Which UML diagram would you use to model a resource like a JavaBean (See “JavaBeans.”)

296 Sunday Afternoon 3. How would you use the Component diagram in the development of a Web system (See “MVC pattern in the case study.”) 4. What is the purpose of the Model View Controller (MVC) pattern (See “Model View Controller.”)

Session 28—Analysis and Architectural Design of a Web Application 295<br />

Gateways that translate between WAP and HTTP. All you have to do is write JSP pages containing<br />

WML, specify the MIME content type for WML, and place them on your normal Web<br />

server. The WAP Gateway, which is usually provided by the wireless network provider, not by<br />

you, automatically takes care of the rest. Figure 28-6 shows a Deployment diagram with the<br />

hardware (traditional wired device, wireless device, WAP Gateway, and the Web Server). The<br />

components from Figure 28-5 are placed onto the nodes of the Deployment diagram to show<br />

where they will reside.<br />

Traditional Wired<br />

Device<br />

Web<br />

Browser<br />

<br />

Web Server<br />

JavaBeans<br />

Wireless Device<br />

like Cell Phone<br />

<br />

WAP Gateway<br />

<br />

JSP pages<br />

with WML<br />

content<br />

JSP pages<br />

with HTML<br />

content<br />

Micro Web<br />

Browser<br />

Figure 28-6<br />

<strong>UML</strong> Deployment diagram, WAP Gateway<br />

REVIEW<br />

Because requirements gathering and analysis are more about the business problem<br />

than the technical solution to it, the process for these phases should not be any<br />

different for a Web system than for a non-Web system. One exception to this general<br />

rule is that the customer should consider additional technological factors such as<br />

scalability, reliability, availability, performance, and security — considerations that<br />

may not be as important when designing a standalone system.<br />

The Model View Controller (MVC) design pattern simplifies development and enhances<br />

maintainability by separating the data model, user interface views, and controller<br />

logic aspects of your system. MVC can be adapted to Java Web applications by separating<br />

the model into JavaBeans and the view into JSP pages. Session 29 will show<br />

you how to separate out the controller. MVC also makes it easier to have two views,<br />

such as a WML view and an HTML view.<br />

QUIZ YOURSELF<br />

1. What additional kinds of technological factors should a customer consider with a<br />

Web system (See “Requirements Gathering.”)<br />

2. Which <strong>UML</strong> diagram would you use to model a resource like a JavaBean (See<br />

“JavaBeans.”)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!