| 
WebObjects 5.2.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the methods that can be implemented by the delegate of EODistributionChannels -- mostly to handle exceptions. The delegate does not have to actually implement the interface and all methods of it; it is sufficient to implement just the methods needed, but by implementing the interface, the compiler helps to find problems with wrong method signatures.
| Method Summary | |
 IOException | 
distributionChannelShouldThrowIOException(EODistributionChannel channel,
                                          IOException ioException)
Gives the delegate an opportunity to handle an I/O exception which occured while communicating with the server.  | 
 Throwable | 
distributionChannelShouldThrowServerException(EODistributionChannel channel,
                                              Throwable clientExceptionForServerException,
                                              String originalServerExceptionClassName,
                                              String originalServerExceptionMessage)
Gives the delegate an opportunity to handle an exception that occured on the server side.  | 
 InputStream | 
distributionChannelWillReadFromStream(EODistributionChannel channel,
                                      InputStream stream)
Gives the delegate an opportunity to decrypt data received from the server.  | 
 OutputStream | 
distributionChannelWillWriteToStream(EODistributionChannel channel,
                                     OutputStream stream)
Gives the delegate an opportunity to encrypt data sent to the server.  | 
| Method Detail | 
public IOException distributionChannelShouldThrowIOException(EODistributionChannel channel,
                                                             IOException ioException)
null if it is able to deal
 with the exception completely. If the delegate does not want to handle the
 exception, it should return the exception passed as the ioException
 argument (which is the exception the client throws if
 the delegate does not implement this method or the method is not set).
channel - the distribution channelioException - the I/O exception
null if no exception should be throwndistributionChannelShouldThrowServerException(EODistributionChannel, Throwable, String, String)
public Throwable distributionChannelShouldThrowServerException(EODistributionChannel channel,
                                                               Throwable clientExceptionForServerException,
                                                               String originalServerExceptionClassName,
                                                               String originalServerExceptionMessage)
null if it is
 able to deal with the exception completely. If the delegate does
 not want to handle the exception, it should return the exception
 passed as the clientExceptionForServerException argument 
 (which is the exception the client throws if the delegate
 does not implement this method or the method is not set).
channel - the distribution channelclientExceptionForServerException - the proposed client exceptionoriginalServerExceptionClassName - the class name of the exception which occured on the server sideoriginalServerExceptionMessage - the message of the exception which occured on the server side
null if no exception should be throwndistributionChannelShouldThrowIOException(EODistributionChannel, IOException)
public InputStream distributionChannelWillReadFromStream(EODistributionChannel channel,
                                                         InputStream stream)
channel - the distribution channelstream - the stream data is received through
public OutputStream distributionChannelWillWriteToStream(EODistributionChannel channel,
                                                         OutputStream stream)
channel - the distribution channelstream - the stream data is sent through
  | 
Last updated Mon Oct 13 15:42:52 PDT 2003. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||