examples.guestbook
Interface GuestbookService

All Known Implementing Classes:
GuestbookServiceImpl

public interface GuestbookService

This service gives access to a guestbook. The caller is allowed to ask for the name of the guestbook's owner, add an own entry, and to read the entire set of entries.

Version:
$Id: GuestbookService.java 1913 2007-08-08 02:41:53Z jpeters $
Author:
U. Pinsdorf

Field Summary
static String WHATIS
          The WhatIs entry key for this service.
 
Method Summary
 void addEntry(String text)
          Allows to add an entry to the end of the guestbook.
 String[] getEntries()
          Returns all entries from the guestbook.
 String getOwner()
          Returns the name of the guestbook's owner.
 

Field Detail

WHATIS

public static final String WHATIS
The WhatIs entry key for this service.

See Also:
Constant Field Values
Method Detail

getOwner

public String getOwner()
Returns the name of the guestbook's owner. The data is read from the guetsbook itself. Hence it may change only if the guestbook gets altered.

Returns:
name of the guestbook owner

getEntries

public String[] getEntries()
Returns all entries from the guestbook. The return value is a field of strings where each field member represents one entry.

Returns:
field of all guestbook entries

addEntry

public void addEntry(String text)
Allows to add an entry to the end of the guestbook.

Parameters:
text - the entry to be added


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.