IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.http
Class HttpChannelRequest

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

public class HttpChannelRequest
extends BTTChannelRequest


Field Summary
protected  javax.servlet.http.HttpServletRequest request
           
 
Fields inherited from class com.ibm.btt.channel.BTTChannelRequest
log
 
Constructor Summary
HttpChannelRequest(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
protected  void checkSession(ChannelContext channelContext)
           
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.String getCharacterEncoding()
           
 java.lang.Object getRequest()
           
 java.lang.String getSessionId(ChannelContext channelContext)
           
 java.lang.String getUserType(ChannelContext channelContext)
           
 void parseRequestData(ChannelContext channelContext)
          Parses the contents of the parameters contained in the HttpServletRequest, parses the request data into the KeyedCollection, and adds the kColl into the ChannelContext request data.
 void parseRequestHeader(ChannelContext channelContext)
          Parses the contents of the header contained in the HttpServletRequest, parses the request header into the KeyedCollection, and adds the kColl into the ChannelContext request data.
 void preProcessRequest(ChannelContext channelContext)
          Performs any session management/control required at the device level.
 void setAttribute(java.lang.String attribute, java.lang.Object value)
           
 void setCharacterEncoding(java.lang.String encoding)
           
 
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
 

Field Detail

request

protected javax.servlet.http.HttpServletRequest request
Constructor Detail

HttpChannelRequest

public HttpChannelRequest(javax.servlet.http.HttpServletRequest request)
Method Detail

getUserType

public java.lang.String getUserType(ChannelContext channelContext)

parseRequestData

public void parseRequestData(ChannelContext channelContext)
                      throws java.lang.Exception
Parses the contents of the parameters contained in the HttpServletRequest, parses the request data into the KeyedCollection, and adds the kColl into the ChannelContext request data.

Override this method to modify the the data parsing behavior.

Throws:
java.lang.Exception

parseRequestHeader

public void parseRequestHeader(ChannelContext channelContext)
                        throws java.lang.Exception
Parses the contents of the header contained in the HttpServletRequest, parses the request header into the KeyedCollection, and adds the kColl into the ChannelContext request data.

Override this method to modify the the data parsing behavior.

Throws:
java.lang.Exception

preProcessRequest

public void preProcessRequest(ChannelContext channelContext)
                       throws DSECSSessionNotEstablishedException
Performs any session management/control required at the device level. This method inserts the channel session into the ChannelContext and must provide support for using cookies and hidden form field to manage the session.

Throws:
DSECSSessionNotEstablishedException - Thrown if the session has expired

checkSession

protected void checkSession(ChannelContext channelContext)
                     throws DSECSSessionNotEstablishedException
Throws:
DSECSSessionNotEstablishedException

getSessionId

public java.lang.String getSessionId(ChannelContext channelContext)

setAttribute

public void setAttribute(java.lang.String attribute,
                         java.lang.Object value)

getCharacterEncoding

public java.lang.String getCharacterEncoding()

getRequest

public java.lang.Object getRequest()

setCharacterEncoding

public void setCharacterEncoding(java.lang.String encoding)
                          throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008