forked from NMSU-SDev/Programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Program 1 Completed: simpleWebServer CHANGELOG: - Added http code and page variables - Added getSort and searchFile methods - Changed readHTTPRequest to allow custom html file support - Changed writeHTTPHeader to support 404 errors - Changed writeContent to support 404 errors and custom html pages
- Loading branch information
Showing
4 changed files
with
155 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
1. 5.5 Hours | ||
2. | ||
3.5 Hours Thought/Research/Design | ||
0.5 hours programming | ||
1 hour debugging | ||
|
||
3. Question 1 was done after the project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<project name="SimpleWebServer" default="run"> | ||
|
||
<target name="clean"> | ||
<delete dir="bin"/> | ||
</target> | ||
|
||
<target name="compile" depends="clean"> | ||
<mkdir dir="bin"/> | ||
<javac srcdir="." destdir="bin"/> | ||
</target> | ||
|
||
<target name="run" depends="compile"> | ||
<java classname="edu.nmsu.cs.webserver.WebServer" classpath="bin/"> | ||
<arg value="8080"/> | ||
</java> | ||
</target> | ||
|
||
|
||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<p>Hello world, the current date is: <cs371date>. The server is: <cs371server>.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters