All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.download.registration.NewsClass

java.lang.Object
   |
   +----semper.download.registration.NewsClass

public class NewsClass
extends Object
implements Serializable
The NewsClass class defines and implements all the methods that are necessary in order to manipulate the local stored news

Version:
$Revision: 1.1 $ $Date: 1998/03/13 16:48:13 $
Author:
Petros Pantis, Kostas Tzelepis

Constructor Index

 o NewsClass()
Object constructor

Method Index

 o htmlContents()
 o printSelf(PrintWriter)
Method used for debugging reasons
 o registerNews(Vector, InetAddress, String)
Method used to register news, in the news database.
 o retrieveNews(long)
Retrieve all the news that have been registered after the passed time

Constructors

 o NewsClass
 public NewsClass()
Object constructor

Methods

 o registerNews
 public long registerNews(Vector news,
                          InetAddress host,
                          String certid)
Method used to register news, in the news database.

Parameters:
news - this list contains the news, that should be registered
host - the host address that offers the news
certid - the certificate identifier of the news originator
Returns:
value the register-time
 o retrieveNews
 public Vector retrieveNews(long time)
Retrieve all the news that have been registered after the passed time

Parameters:
time - defines the starting time in which the database search should begin
Returns:
value a list of news that have been registered after the above time
 o printSelf
 public void printSelf(PrintWriter out)
Method used for debugging reasons

 o htmlContents
 public String htmlContents()

All Packages  Class Hierarchy  This Package  Previous  Next  Index