SWServer
SWServer Version 1.2
SWServer is a simple Web server written in Java. In order to run it, you need the
Java Runtime Environment (JRE 1.2)
(SWServer is compiled with Java 1.1.6 though).
SWServer features options to delay transfer of
files and/or to lower the speed of file transfer, to simulate the low performance modem
connection of most Web surfers.
If you develop your Web pages in your local machine, SWServer may be a helpful
little tool for you to test your Web pages in a simulated modem line environment, without
requiring you to upload your Web pages to your Web host. Although SWServer does
not currently support advanced Web server features like CGI, it supports resumable file download.
Usage: SWServer [options] <home directory> [<default HTML>]
E.g. : SWServer -delay=500 -speed=28.8 c:/TLHome index.html
Keys : <home directory>: the home directory of your Web site.
<default HTML>: the default HTML file.
[options]: -verbose -- verbose mode
-port=<#> -- port to use
-delay=<#> -- delay (in ms) before tranfer file
-speed=<#> -- transfer speed (in K bits/s)
-keepalive=<#> -- keep-alive timeout (in s)
-buffer=<#> -- tranfer buffer size (in bytes)
When SWServer starts, it will display the settings like:
SWServer (Simple Web Server) V1.2 -- By Trevor Lee, Wing Sang
HOME DIRECTORY: c:/TLHome
DEFAULT FILE: index.html
VERBOSE: false
KEEP ALIVE: NOT ALLOWED
TRANSFER DELAY: 500ms
TRANSFER SPEED: 28.8 Kbits/s
TRANSFER BUFFER SIZE: 10240 bytes
TRANSFER BUFFER DELAY: 3472ms
LOCAL: tlmachine/123.456.79.90 PORT: 80
started...
The line LOCAL shows your machine name (and the IP address). The address of your simple
Web site will then be like, say, http://tlmachine. Alternatively, you can always use
http://localhost to access the Web site setup in your local machine.
Please note that if you specify any port other than 80,
say 2048, you will usually need to append your URL with the port number like
http://tlmachine:2048.
SWServer is a FREEWARE for personal and educational use, and
can be freely distributed for non-commercial purposes. The author shall retain
the rights to the source and the binary of the program. This freeware does not
come with any warranty, or support of any kind. The author is not responsible
for any damage caused due to the use of this program. Bug reports, comments
and suggestions are welcome.
Trevor Lee, Wing Sang
E-mail: trev_lee@hotmail.com
Home Page: http://www.geocities.com/tlhome2000
Download: SWServer.zip (16KB). After you downloaded the ZIP file, you
do not need to extract the class files to your hard drive.
Here is one way to run this Java (JRE 1.2) program:
java -cp SWServer.zip SWServer -delay=500 ...
Back to the SWServer application page.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|