Servertec Servlets
Documentation
Conventions
Command Line
Java API
Servlet API
Servlets
Config Files
Log Files
Classes
Directory Tree

Return

 

Servertec Internet Server Servlets uses the following Servlets.

Servlet Description
CommandServlet CommandServlet, is used by iwsCommand and stop_iws to stop the server.

Aliases

Alias: /command
Type: Servlet
Resource: CommandServlet

Servlets

Alias: CommandServlet
Class File: stec.iws.CommandServlet
Parameters:

Notes

Normally defined as a Servlet aliased as /command.

CommandServlet accepts the following request parameters:

action The action to take, [stop].

stop is used to stop the server.

id The administrator's username as defined in /tini_iws/deploy/config/iws.ini.
pw The administrator's password as defined in /tini_iws/deploy/config/iws.ini.

CommandServlets returns the following status codes:

200 Server was stopped.
401 Invalid username/password.
403 Server can not be administered remotely.
501 Invalid action.

Example

http://localhost:8080/command
?id=admin&pw=admin&action=stop

Notes

Administrators should immediately change the default Username/Password.

Username/Password should not be any obvious word, easily guessed terms, should be at least 8 characters and should contain letters, numeric and symbols.

Additionally Username/Password should be kept private, with limited controlled disclosure and should be changed frequently.

FileServlet This Servlet provides access to both files directories.

System-wide parameters used by FileServlet are defined in iws_dir\build\storage\config\iws.ini.

default_page The name of the default html document to retrieve, if non was specified.

index.html is the default for Servertec Internet Server.

directory_access Whether to allow directories to be displayed.

n is the default for Servertec Internet Server.

Setting this value to y is potentially a security hole.

Normally defined as a Servlet aliased as /.

Servertec Internet Server uses directory.html and directory_item.tf in iws_dir\build\storage when displaying a directory.

iws_dir The directory where Servertec Internet Server aJile Edition was installed, normally c:\ajile_iws.

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:47 EDT 2005