|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void startChannelFailed(int code, java.lang.String message)
code
- the error codemessage
- the error messageChannelHandler createChannelHandler(ProfileInfo info)
info
- the ProfileInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |