IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.http
Class XmlHttpChannelRequest

java.lang.Object
  extended by com.ibm.btt.channel.BTTChannelRequest
      extended by com.ibm.btt.http.HttpChannelRequest
          extended by com.ibm.btt.http.XmlHttpChannelRequest
All Implemented Interfaces:
ChannelRequest
Direct Known Subclasses:
JSONHttpChannelRequest

public class XmlHttpChannelRequest
extends HttpChannelRequest

The channel request used to wrap the HttpServletRequest. This is used in XmlRequestServlet


Field Summary
 
Fields inherited from class com.ibm.btt.http.HttpChannelRequest
request
 
Constructor Summary
XmlHttpChannelRequest(javax.servlet.http.HttpServletRequest request)
          Construct the XmlHttpChannelRequest request
 
Method Summary
 java.lang.String getUserType(ChannelContext channelContext)
          Get the user type of the channel, this is used to determine the client type.
 void parseRequestData(ChannelContext channelContext)
          Read the contents of the HttpServletRequest Use the request reader and create a buffer of the contents and pass the string of to the processor to be processed
 
Methods inherited from class com.ibm.btt.http.HttpChannelRequest
checkSession, getAttribute, getCharacterEncoding, getRequest, getSessionId, parseRequestHeader, preProcessRequest, setAttribute, setCharacterEncoding
 
Methods inherited from class com.ibm.btt.channel.BTTChannelRequest
runInSession, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlHttpChannelRequest

public XmlHttpChannelRequest(javax.servlet.http.HttpServletRequest request)
Construct the XmlHttpChannelRequest request

Parameters:
request - the HttpServletRequest request
Method Detail

getUserType

public java.lang.String getUserType(ChannelContext channelContext)
Get the user type of the channel, this is used to determine the client type. So the channel driver use this to determine which channel the request is from.

Specified by:
getUserType in interface ChannelRequest
Overrides:
getUserType in class HttpChannelRequest
Parameters:
channelContext - the channel context object
Returns:
the user type of the client

parseRequestData

public void parseRequestData(ChannelContext channelContext)
                      throws java.lang.Exception
Read the contents of the HttpServletRequest

Use the request reader and create a buffer of the contents and pass the string of to the processor to be processed

Specified by:
parseRequestData in interface ChannelRequest
Overrides:
parseRequestData in class HttpChannelRequest
Parameters:
channelContext - the channel context object
Throws:
java.lang.Exception - if error occur during parsing

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011