|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.channel.BTTChannelDriver
public class BTTChannelDriver
The ChannelDriver interface This is the interface to be used as a template for all new device types that are to use the Multichannel Interface This interface should also detail the extension points for all channel drivers.
Any object implementing this interface will have to provide:
Constructor Summary | |
---|---|
BTTChannelDriver()
|
Method Summary | |
---|---|
ChannelContext |
createChannelContext(ChannelRequest req,
ChannelResponse res)
Creates a ChannelContext object with the req, res, and driver attributes. |
void |
createChannelHandler(ChannelContext channelContext)
Creates a BTTChannelHandler object with the channelContext attribute and caches the BTTChannelHandler into the HandlerRegistry singleton. |
protected void |
handleException(ChannelContext channelContext,
java.lang.Exception ex)
Invokes the presentation handler to pass the exception to the client. |
protected void |
handleException(java.lang.Throwable ex)
Logs the exception with the framework trace facility. |
void |
init(ChannelContext aChannelCtxt)
Initialize the device type and create the channel handler for the channel context |
protected void |
initDeviceType(ChannelContext channelContext)
Determines the device type for the handler and adds to the ChannelContext object. |
void |
parseRequestData(ChannelContext channelContext)
Parse the request data of the request object |
void |
parseRequestHeader(ChannelContext channelContext)
Parse the request header of the request object |
void |
preProcessRequest(ChannelContext channelContext)
Pre-processing the request object, this can be used to check the session is established or not |
void |
service(ChannelContext channelContext)
Process the request and generate the reponse |
protected void |
updateChannelHandler(ChannelHandler aChannelHandler,
java.lang.String key,
java.lang.Object value)
Update the channel handler using the value configured in btt.xml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BTTChannelDriver()
Method Detail |
---|
public ChannelContext createChannelContext(ChannelRequest req, ChannelResponse res)
createChannelContext
in interface ChannelDriver
req
- java.lang.Objectres
- java.lang.Objectdriver
- java.lang.Object
public void createChannelHandler(ChannelContext channelContext) throws java.lang.Exception
createChannelHandler
in interface ChannelDriver
channelContext
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
public void parseRequestData(ChannelContext channelContext) throws java.lang.Exception
parseRequestData
in interface ChannelDriver
channelContext
- the channel context object
java.lang.Exception
- if error occur during parsingpublic void parseRequestHeader(ChannelContext channelContext) throws java.lang.Exception
parseRequestHeader
in interface ChannelDriver
channelContext
- the channel context object
java.lang.Exception
- if error occur during parsingpublic void preProcessRequest(ChannelContext channelContext) throws DSECSSessionNotEstablishedException
preProcessRequest
in interface ChannelDriver
channelContext
- the channel context object
DSECSSessionNotEstablishedException
- if the session isn't establishedprotected void initDeviceType(ChannelContext channelContext) throws DSENoRegisteredDeviceTypeException, DSEObjectNotFoundException
channelContext
- com.ibm.btt.clientserver.ChannelContext
DSENoRegisteredDeviceTypeException
- throw error
DSEObjectNotFoundException
- throw errorprotected void updateChannelHandler(ChannelHandler aChannelHandler, java.lang.String key, java.lang.Object value) throws java.lang.Exception
aChannelHandler
- the channel handlerkey
- the key that used to register in the channel handlervalue
- the value that will register in the channel handler
java.lang.Exception
- if error occurprotected void handleException(ChannelContext channelContext, java.lang.Exception ex)
channelContext
- com.ibm.btt.clientserver.ChannelContextex
- java.lang.Exception Thrown if the server is unable to process
a responseprotected void handleException(java.lang.Throwable ex)
ex
- java.lang.Exceptionpublic void init(ChannelContext aChannelCtxt) throws java.lang.Exception
aChannelCtxt
- the channel context
java.lang.Exception
- if any error occurpublic void service(ChannelContext channelContext)
service
in interface ChannelDriver
request
- the channel request object, If the protocal is http, the
request is a HttpServletRequestresponse
- the channel request object, If the protocal is http, the
request is a HttpServletResponse
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |