|
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.BTTChannelRequest
com.ibm.btt.http.HttpChannelRequest
public class HttpChannelRequest
The channel request used to wrap the HttpServletRequest.
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)
Construct the HttpChannelRequest |
Method Summary | |
---|---|
protected void |
checkSession(ChannelContext channelContext)
Check the session is established or not |
java.lang.Object |
getAttribute(java.lang.String name)
Get the attribute value from the request |
java.lang.String |
getCharacterEncoding()
|
java.lang.Object |
getRequest()
The channel request is a wrapper, so you can use this to get the underlying request object |
java.lang.String |
getSessionId(ChannelContext channelContext)
Get the session id |
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)
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)
Set the attribute value of the request |
void |
setCharacterEncoding(java.lang.String encoding)
Set the character encoding of the request and the response |
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 |
---|
protected javax.servlet.http.HttpServletRequest request
Constructor Detail |
---|
public HttpChannelRequest(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequest objectMethod Detail |
---|
public java.lang.String getUserType(ChannelContext channelContext)
channelContext
- the channel context object
public void parseRequestData(ChannelContext channelContext) throws java.lang.Exception
Override this method to modify the the data parsing behavior.
channelContext
- the channel context object
java.lang.Exception
- if error occur during parsingpublic void parseRequestHeader(ChannelContext channelContext) throws java.lang.Exception
Override this method to modify the the data parsing behavior.
channelContext
- the channel context object
java.lang.Exception
- if error occur during parsingpublic void preProcessRequest(ChannelContext channelContext) throws DSECSSessionNotEstablishedException
channelContext
- the channel context object
DSECSSessionNotEstablishedException
- Thrown if the session has expiredprotected void checkSession(ChannelContext channelContext) throws DSECSSessionNotEstablishedException
channelContext
- the channel context object
DSECSSessionNotEstablishedException
- if session isn't establishedpublic java.lang.String getSessionId(ChannelContext channelContext)
channelContext
- the channel context object
public void setAttribute(java.lang.String attribute, java.lang.Object value)
attribute
- the attribute namevalue
- the attribute valuepublic java.lang.String getCharacterEncoding()
public java.lang.Object getRequest()
public void setCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- the character encoding
java.io.UnsupportedEncodingException
- if the encoding isn't supportedpublic java.lang.Object getAttribute(java.lang.String name)
name
- the attribute name
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |