Skip to content

EECS 4413: Building E-Commerce Systems (Fall 2021) - Code examples from Tomcat & Web Services module (Weeks 3 & 4).

Notifications You must be signed in to change notification settings

EECS4413-2021F/Module-B

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module B - Web Services


HTTP Server Refactoring Example

Description
v1.0 The initial code with everything in the run method.
v1.1 The business logic/application code is moved into a doRequest method.
v1.2 The request and response variables are grouped into Request and Response classes.
v1.3 The doRequest is removed for the HTTPServer class entirely into a subclass MainService.
v2 The Request and Response classes and the request and response handling methods are moved into dedicated RequestContext and ResponseContext classes.
v3 Split each service into its own class, and group the server code into its own package.
v4 Reorganize the server code so the server itself isn't a thread. Clients are handle by worker threads.
v5 Spin-off the service logic into model classes, engines, and data access objects.

The Tomcat servlet versions:

The associated model classes:


Other Servlets

  • TotalService: Demonstrates accessing and setting the session.

From the Lab


RESTful Products API Example

From the Lab


Miscellaneous


Common Gateway Interface

To run, copy the cgi-bin directory into your www directory and run: chmod -R go+x ~/www/cgi-bin/.

Bash Scripts:

PERL Scripts:

About

EECS 4413: Building E-Commerce Systems (Fall 2021) - Code examples from Tomcat & Web Services module (Weeks 3 & 4).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages