public abstract class GUIServletStub
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_HTML
The content type for HTML data.
|
static String |
CONTENT_TYPE_PLAIN
The content type for plain textual data.
|
| Constructor and Description |
|---|
GUIServletStub(String title)
The constructor to be invoked by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJavascriptFile(String file)
Adds a javascript file to be included in the header.
|
void |
addStyleSheet(String file)
Adds a stylesheet file to be included in the header.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
abstract void |
printPage(PrintWriter writer,
Map<String,String[]> parameters,
javax.servlet.http.HttpServletRequest req)
This method must be overridden by the subclass.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String CONTENT_TYPE_PLAIN
public static final String CONTENT_TYPE_HTML
public GUIServletStub(String title)
title - The title of the page, to be entered into the headers title tag.public void addStyleSheet(String file)
file - The file to be included.public void addJavascriptFile(String file)
file - The file to be included.protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic abstract void printPage(PrintWriter writer, Map<String,String[]> parameters, javax.servlet.http.HttpServletRequest req) throws IOException
writer - The PrintWriter to print the content to.parameters - The map containing all parameters mapped to their values.IOException - If the request processing failed due to an I/O problem.Copyright © 2013–2014. All rights reserved.