|
|||||||||
| Home >> All >> [ PublisherServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
PublisherServer
Class PublisherServlet

java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
PublisherServer.PublisherServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class PublisherServlet
- extends javax.servlet.http.HttpServlet
Client application for publishing.
Copyright (c) 2000-2001
Version 1.0.2:
- Use of a serialized file to maintain target PageBox URLs. For each target PageBox are maintained a ArrayList of installed archives with the timestamp of they current version.
- Subscribe support - aka the ability to add a new PageBox to the list.
- management of published archives and subscribed PageBoxes.
Version 1.0.3:
- listSubscribers
- publisher parameter at deploy
- dummy subscriber to allow unsubscribe all PageBoxes without losing archive references
Version 1.0.4:
- listSubscribers with only valid subscribers
IMPORTANT NOTE:
It must be mapped on publish in web.xml.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- Version:
- 1, 0, 4
| Nested Class Summary | |
(package private) class |
PublisherServlet.Log
Class responsible to log messages. |
(package private) class |
PublisherServlet.PageBoxEntry
|
(package private) class |
PublisherServlet.PageBoxURLHandler
|
(package private) class |
PublisherServlet.Scanner
Implements a scanner thread to synchronize publications |
| Field Summary | |
(package private) static java.lang.String |
dummy
|
(package private) java.lang.String |
encodedThisUrl
Version 1.0.3. |
(package private) static boolean |
initialized
true: initialized. |
(package private) static PublisherServlet.Log |
log
Log object used to print and maintain log entries. |
(package private) static int |
maxlength
Maximum size of archives. |
(package private) static PublisherServlet.PageBoxURLHandler |
pbuh
|
(package private) static java.lang.String |
repository
Location where archives are stored. |
(package private) static java.lang.String |
repositoryURL
URL where to retrieve archives. |
(package private) static int |
SCANPERIOD
Scanner wake-up |
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Fields inherited from class javax.servlet.GenericServlet |
|
| Constructor Summary | |
PublisherServlet()
|
|
| Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
GET request handling. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
POST request handling. |
java.lang.String |
getServletInfo()
Returns information about the servlet, such as author, version, and copyright. |
void |
handleDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String archive)
Delete handling. |
private void |
initialize()
Creates log and read web.xml parameters. |
private void |
listSubscribers(java.io.PrintWriter out)
Designed to be used by Mapper. |
private void |
report(java.io.PrintWriter out,
javax.servlet.http.HttpServletRequest request)
Designed to be used by browsers. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
static PublisherServlet.Log log
- Log object used to print and maintain log entries.
repository
static java.lang.String repository
- Location where archives are stored.
repositoryURL
static java.lang.String repositoryURL
- URL where to retrieve archives.
maxlength
static int maxlength
- Maximum size of archives.
initialized
static boolean initialized
- true: initialized.
dummy
static final java.lang.String dummy
- See Also:
- Constant Field Values
pbuh
static PublisherServlet.PageBoxURLHandler pbuh
SCANPERIOD
static final int SCANPERIOD
- Scanner wake-up
- See Also:
- Constant Field Values
encodedThisUrl
java.lang.String encodedThisUrl
- Version 1.0.3. encoded url of this publisher.
| Constructor Detail |
PublisherServlet
public PublisherServlet()
| Method Detail |
initialize
private final void initialize()
- Creates log and read web.xml parameters.
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
- GET request handling.
To invoke with publish?arch=...&lm=...&todo=delete|publish|subscribers|init.
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
- POST request handling.
getServletInfo
public java.lang.String getServletInfo()
- Description copied from class:
javax.servlet.GenericServlet - Returns information about the servlet, such as
author, version, and copyright.
By default, this method returns an empty string. Override this method
to have it return a meaningful value. See Servlet.getServletInfo()>
Servlet.getServletInfo()55 .
handleDelete
public void handleDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String archive) throws javax.servlet.ServletException, java.io.IOException
- Delete handling.
listSubscribers
private void listSubscribers(java.io.PrintWriter out)
- Designed to be used by Mapper.
List subscribers - todo=subscribers.
report
private void report(java.io.PrintWriter out, javax.servlet.http.HttpServletRequest request)
- Designed to be used by browsers.
- reporting about subscriptions and publications - GET without parameter.
- subscribe and unsubscribe form and handling.
|
|||||||||
| Home >> All >> [ PublisherServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC