|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PublisherServer.PublisherServlet
Client application for publishing.
Copyright (c) 2000-2001
Version 1.0.2:
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.
Inner 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 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 |
Constructor Summary | |
PublisherServlet()
|
Method Summary | |
void |
doGet(PublisherServer.HttpServletRequest request,
PublisherServer.HttpServletResponse response)
GET request handling. |
void |
doPost(PublisherServer.HttpServletRequest request,
PublisherServer.HttpServletResponse response)
POST request handling. |
java.lang.String |
getServletInfo()
|
void |
handleDelete(PublisherServer.HttpServletRequest request,
PublisherServer.HttpServletResponse response,
java.lang.String archive)
Delete handling. |
private void |
initialize()
Creates log and read web.xml parameters. |
private void |
report(java.io.PrintWriter out,
PublisherServer.HttpServletRequest request)
reporting about subscriptions and publications - GET without parameter. subscribe and unsubscribe form and handling. |
Field Detail |
static PublisherServlet.Log log
static java.lang.String repository
static java.lang.String repositoryURL
static int maxlength
static boolean initialized
static PublisherServlet.PageBoxURLHandler pbuh
static final int SCANPERIOD
Constructor Detail |
public PublisherServlet()
Method Detail |
private final void initialize()
public void doGet(PublisherServer.HttpServletRequest request, PublisherServer.HttpServletResponse response) throws PublisherServer.ServletException, java.io.IOException
request
- HttpServletRequest.response
- HttpServletResponse.public void doPost(PublisherServer.HttpServletRequest request, PublisherServer.HttpServletResponse response) throws PublisherServer.ServletException
request
- HttpServletRequest.response
- HttpServletResponse.public java.lang.String getServletInfo()
public void handleDelete(PublisherServer.HttpServletRequest request, PublisherServer.HttpServletResponse response, java.lang.String archive) throws PublisherServer.ServletException, java.io.IOException
request
- HttpServletRequest.response
- HttpServletResponse.archive
- archive to delete.private void report(java.io.PrintWriter out, PublisherServer.HttpServletRequest request)
out
- PrintWriter to use.request
- HTTP request.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |