net.sf.beep4j
Interface ChannelHandlerFactory


public interface ChannelHandlerFactory

Factory to create ChannelHandler objects. This factory is used by the Session.startChannel(ProfileInfo[], ChannelHandlerFactory) method to create a new ChannelHandler for the selected profile. Otherwise the application would have to pass in n ChannelHandler objects for n ProfileInfo objects passed into the method.

Author:
Simon Raess

Method Summary
 ChannelHandler createChannelHandler(ProfileInfo info)
          Requests the factory to create a ChannelHandler for the specified ProfileInfo.
 void startChannelFailed(int code, java.lang.String message)
          Notifies the factory that the channel creation failed.
 

Method Detail

startChannelFailed

void startChannelFailed(int code,
                        java.lang.String message)
Notifies the factory that the channel creation failed.

Parameters:
code - the error code
message - the error message

createChannelHandler

ChannelHandler createChannelHandler(ProfileInfo info)
Requests the factory to create a ChannelHandler for the specified ProfileInfo.

Parameters:
info - the ProfileInfo
Returns:
a new ChannelHandler for that profile


Copyright © 2007 null. All Rights Reserved.