FileDocCategorySizeDatePackage
EBookQuery.javaAPI DocExample2528Wed Oct 09 13:04:26 BST 2002ora.jwsnut.chapter6.extendedbookservice

EBookQuery

public interface EBookQuery implements Remote
The interface definition for the extended book web service.

Fields Summary
Constructors Summary
Methods Summary
public abstract javax.mail.internet.MimeMultipartgetAllImages()
Gets the book images in MimeMultipart form

return
a MimeMultipart object containing the book images.

public abstract intgetBookCount()
Gets the number of books known to the service

return
the number of books known to the service.

public abstract javax.xml.transform.Source[]getBookDetails(java.lang.String[] titles)
Gets XML details for a given list of books.

param
titles the titles of the books.
return
an array of Source object containing XML details for the given list of books.
throws
EBookServiceException if the book title is unknown

public abstract java.lang.String[]getBookTitles()
Gets the set of book titles.

return
the set of book titles.

public abstract javax.activation.DataHandler[]getImageHandlers(java.lang.String[] titles, boolean gif)
Gets book images in the form of a DataHandler

param
titles the titles of the books
param
gif true to request GIF, false for JPEG
return
an array of DataHandlers for the cover images for the named books.
throws
EBookServiceException if any book title is unknown

public abstract java.awt.Image[]getImages(java.lang.String[] titles, boolean gif)
Gets the images for books with given titles

param
titles the titles of the books
param
gif true to request a GIF, false for JPEG
return
an array of images for the named books.
throws
EBookServiceException if any book title is unknown