© 2000 Anthony Grace

No rated * * * * * Resize -A   +A

 

Apperdix to Chapter 5:

 

 

Appendix A

Glossary of Terms

anonymous ftp: The process of connecting up to other computers on the internet which allow public access. Connection is established using the ftp program, and logging in with “anonymous” as the username, and using our email address as the password.

archive: A collection of files that has been packed together into a single large file using the tar command.

bash shell: This stands for GNU Bourne Again Shell which is based on the Bourne shell, sh, the original command interpreter.

background process: An autonomous process that runs under UNIX without requiring user interaction.

binary file: A file which contains characters other than pure ascii text.

Bourne shell: The original standard user interface to UNIX that supported limited programming capability.

browser: A client program used to access the World Wide Web.

C shell: A user interface for UNIX featuring C programming-like syntax.

daemon: A system-related background process that often runs with the permissions of root and services requests from other processes.

DNS: Domain Name Server. Used to convert between the name of a machine on the Internet ( emhain.wit.ie ) and the numeric IP adress ( 127.45.1.123 ).

domain: The part of a standard Internet address that indicates the complete name of the computer. E.g. in the address agrace@emhain.wit.ie, the domain is emhain.wit.ie.

domain address: An Internet address that uses names called domains. E.g. jsmith@emhain.wit.ie is a domain address. See IP address.

download: To transfer data from a remote computer to our computer.

file permissions: One of three types of authorisations( read, write and execute ), that specifies how a file may be accessed.

file Server: A program or sometimes a computer that provides access to files over a network.

firewall: A system used to provide a controlled entry point to the internal network from the outside ( usually the Internet ). It can be used to prevent outside or unauthorised systems from accessing our internal network. It can also prevent internal systems from accessing the Internet on the outside.

FTP: File Transfer Protocol. A system-independent means of transferring files between systems connected via TCP/IP.

GID: Group ID number.

GNU: GNU stands for GNU’s Not UNIX ! This is the name of free software packages commonly found in UNIX environments that are being distributed by the GNU project at MIT.

GPL: GNU General Public License.

HTML: Hypertext Markup Language. Describes World Wide Web pages. This is the document language used to define the pages available ont the Internet through the use of tags. A browser interprets the tags to display the desired information.

ICMP: Internet Control Message Protocol. This is part of TCP/IP that provides network layer management and control.

IP address: An Internet address that uses numbers rather than domain names. E.g. 17.172.1.27 is an IP address. See domain address.

ISP: Internet Service Provider. The people that connect us to the Internet.

Korn shell: A user interface for UNIX with extensive scripting support. The shell features command-line editing and also accepts scripts written for the Bourne shell.

LAN: Local Area Network.

MIME: Multipurpose Internet Mail Extensions. A set of protocols or methods of attaching binary data ( executable programs, images, sound files, etc. ) or additional text to email messages.

NFS: Network File System. Means of connecting disks that are mounted to a remote system, to the local sytem as if they were physically connected.

Perl: Scripting language developed by Larry Wall. The acronym Perl stands for “Practical Extraction and Report Language” or “Pathologically Eclectic Rubbish Language”!

PGP: Pretty Good Privacy encryption system.

pine: Interactive mail program.

PPP: Point-to-Point Protocol. Internet protocol over serial modem link.

rlogin: Remote Login. This gives the same functionality as telnet without requiring a password from trusted clients; this can cause security concerns.

script: A list of commands that can be executed / interpreted by UNIX utilities including shells, awk, Perl and others.

system administrator: The person who takes care of the operating system and user administrative issues on UNIX systems.

tar: Tape archiving utility.

TCP/IP: A collection of more than 100 different protocols used to connect computers within a network and to transmit data. This pair of protocols is widely used, especially within the Internet.

telnet: Remote login program.

Telnet: A protocol for interactive terminal access to remote systems.

UID: User ID number.

upload: To transfer data from our computer to a remote computer.

URL: Uniform Resource Locator. The method of specifying the protocol, format, login
( usually omitted ), and location of materials on the Internet.

WAN: Wide Area Network.

WWW: World Wide Web. A collection of servers and services on the Internet that run software and communicate using a common protocol ( HTTP ). Rather than having to remember the location of these resources, links are provided from one Web page to another through the use of URLs.

WYSIWYG: What you see is what you get.

 

Appendix B

Bibliography

Asbury, S et al 1997 ‘Perl 5 - HOW TO’ Waite Group Press

Ball, B 1998 ‘Using Linux’ Que

Castor, E 1999 ‘Perl and CGI for the World Wide Web’ Peachpit Press

Davis, H 1999 ‘Red Hat Linux 6’ Peachpit Press

Flanagan, D 1997 ‘Java in a Nutshell’ O’Reilly

Fowler, M. and K. Scott 1997 'UML Distilled' Addison-Wesley

Gundavaram, S 1996 ‘CGI Programming on the World Wide Web’ O’Reilly

Hunter, J 1998 ‘Java Servlet Programming’ O’Reilly

Pressman, R 1994 ‘Software Engineering’ McGraw-Hill

Quatrani, T 1998 ‘Visual Modelling with Rational Rose and UML’ Addisson-Wesley

Rosenfeld, L and Morville, P 1998 ‘Information Architecture’ O’Reilly

Siever, E 1999 ‘PERL in a Nutshell’ O’Reilly

White, B et al 1997 ‘Using JavaBeans’ Que

Appendix C

 

The javax.servlet Servlet Interface

Public interface Servlet
{
//Methods
public abstract void init(ServletConfig config)
throws ServletException;
public abstractServletConfig getServletConfig();
public abstract void service(ServletRequest req,
ServletResponse res)throws ServletException,
IOException;
Public abstract String getServletInfo();
Public abstract void destroy();
}

 

 

public interface ServletConfig
{
//Methods
public abstract ServletContext getServletContext();
public abtract String getInitParameter(String name);
public abstract Enumeration getInitParameterNames();
}

 

public interface ServletContext
{
//Methods
public abstract Servlet getServlet(String name)
throws Servlet Exception;
public abstract Enumeration getServlets();
public abstract void log(String msg);
public abstract String getRealPath(String path);
public abstract String getMimeType(String file);
public abtract String getServerInfo();
public abstract Object getAttribute(String name);
}

 

public abstract class GenericServlet extends Object
implements Servlet, ServletConfig
{
//Constructor
protected GenericServlet();

//Methods
public ServletContext getServletContext();
public String getInitParameter(String name);
public Enumeration getInitParameterNames();
public void log(String msg);
public String getServletInfo();
public void init(ServletConfig config)
throws ServletException;
public ServletConfig getServletConfig();
public abstract void service(ServletRequest req,
ServletResponse res)
throws ServletException,IOException;
public void destroy();
}

 

public interface ServletRequest
{
//Methods
public abstract int getContentLength();
public abstract String getCOntentType();
public abstract String getProtocol();
public abstract String getScheme();
public abstract String getServerName();
public abstract int getServerPort();
public abstract String getRemoteAddress();
public abstract String getRemoteHost();
public abstract String getRealPath(string path);
public abstract ServletInputStream getInputStream()
throws IOException;
public abstract String getParameter(String name);
public abstract String[] getParameterValues(String name);
public abstract Enumeration getParameterNAmes();
public abstract Object getAttribute(String name);
}

 

public interface ServletResponse
{
//Methods
public abstract void setContentLength(int len);
public abstract void setContentType(String type);
public abstract ServletOutputStream getOutputStream()
throws IOException;
}

 

 

public abstract class ServletInputStream extends InputStream
{
//Constructor
protected ServletInputStream();
//Methods
public int readLine(byte b[], int off, int len)
throws IOException;
}

public abstract class ServletOutputStream extends
OutputStream
{
//Constructor
protected ServletOutputStream();

//Methods
public void print(String s) throws IOException;
public void print(boolean b) throws IOException;
public void print(char c) throws IOException;
public void print(int i) throws IOException;
public void print(long l) throws IOException;
public void print(float f) throws IOException;
public void print(double d) throws IOException;
public void println() throws IOException;
public void println(String s) throws IOException;
public void println(booleaan b) throws IOException;
public void println(char c) throws IOException;
public void println(int i) throws IOException;
public void println(long i) throws IOException;
public void println(float f) throws IOException;
public void println(double d) throws IOException;
}
The javax.servlet.http HttpServlet Class

 

Public interface class HttpServlet extends GenericServlet
{
//Constructor
protected HttpServlet();

//Methods
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException, IOException;
protected void doPost(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException, IOException;
protected void service(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException, IOException;
public void service(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException;
protected long getLastModified(HttpServletRequest req);
}

 

public interface HttpServletRequest extends ServletRequest
{
//Methods
public abstract String getMethod();
public abstract String getRequestURI();
public abstract String getServletPath();
public abstract String getPathInfo();
public abstract String getPathTranslated();
public abstract String getQueryString();
public abstract String getRemoteUser();
public abstract String getAuthType();
public abstract String getHeader(String name);
public abstract int getIntHeader(String name);
public abstract long getDateHeader(String name);
public abstract Enumeration getHeaderNames();
}

public interface HttpServletResponse extends ServletResponse
{
//Constants - status return codes
public static final int SC_OK;
public static final int SC_CREATED;
public static final int SC_ACCEPTED;
public static final int SC_NO_CONTENT;
public static final int SC_MOVED_PERMANENTLY;
public static final int SC_MOVED_TEMPORARILY;
public static final int SC_NOT_MODIFIED;
public static final int SC_BAD_REQUEST;
public static final int SC_UNAUTHORIIZED;
public static final int SC_FORBIDDEN;
public static final int SC_NOT_FOUND;
public static final int SC_INTERNAL_SERVER_ERROR;
public static final int SC_NOT_IMPLEMENTED;
public static final int SC_BAD_GATEWAY;
public static final int SC_SERVICE_UNAVAILABLE;

//Methods
public abstract void setStatus(int sc, String sm);
public abstract void setStatus(int sc);
public abstract void setHeader(String name, String value);
public abstract void setIntHeader(String name, int value);
public abstract void setDateHeader(String name,
long date);
public abstract void sendError(int sc, String msg)
throws IOException;
public abstract vvoid sendError(int sc)
throws IOException;
public abstract void sendRedirect(String location)
throws IOException;
public abstract boolean containsHeader(String name);
}

public class HttpUtils extends Object
{
//Constructor
public HttpUtils();

//Methods
public static Hashtable parseQueryString(String s);
public static Hashtable parsePostData(int len,
ServletInputStream in);
Public static StringBuffer
getRequestURL(HttpServletRequest req);
}

 

[Your opinion is important to us. If have a comment, correction or question
pertaining to this chapter please send it to comments@peoi.org.]

Return to: Chapter 5

Next: Foreword