Methods Summary |
---|
public void | getBookAuthor(java.lang.String title, javax.xml.rpc.holders.StringHolder author)Gets the author for a books with a given title
String authorName = SmallBookServiceServantData.getBookAuthor(title);
if (authorName == null) {
throw new SmallBookServiceException("Unknown author: " + title);
}
author.value = authorName;
|
public int | getBookCount()Gets the number of books known to the service
String[] titles = SmallBookServiceServantData.getBookTitles();
return titles == null ? 0 : titles.length;
|
public java.lang.String | getBookTitle(int index)Gets the title of a given book.
String[] bookTitles = SmallBookServiceServantData.getBookTitles();
return bookTitles == null || index < 0 || index >= bookTitles.length
? null : bookTitles[index];
|
public void | log(java.lang.String value)Makes a log entry.
System.out.println(new Date() + ": " + value);
|