|
IBM 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 from the ChannelContext channel request Parse to the request data into the KeyedCollection at the data element |
void |
parseRequestHeader(ChannelContext channelContext)
Parse the request header from the ChannelContext channel request Parse to the request header into the KeyedCollection at the header element |
void |
preProcessRequest(ChannelContext channelContext)
Perform any session management/control required at the device level. |
void |
service(ChannelContext channelContext)
Process the request and generate the reponse |
protected void |
updateChannelHandler(ChannelHandler aChannelHandler,
java.lang.String key,
java.lang.Object value)
|
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
ChannelDriver
Parse to the request data into the KeyedCollection at the data element
parseRequestData
in interface ChannelDriver
channelContext
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
public void parseRequestHeader(ChannelContext channelContext) throws java.lang.Exception
ChannelDriver
Parse to the request header into the KeyedCollection at the header element
parseRequestHeader
in interface ChannelDriver
channelContext
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
public void preProcessRequest(ChannelContext channelContext) throws DSECSSessionNotEstablishedException
ChannelDriver
Insert the channel session into the ChannelContext
preProcessRequest
in interface ChannelDriver
channelContext
- com.ibm.btt.clientserver.ChannelContext
DSECSSessionNotEstablishedException
protected 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
java.lang.Exception
protected 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 Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |