com.ibm.btt.mobile
Class MobileRequest
java.lang.Object
com.ibm.btt.channel.BTTChannelRequest
com.ibm.btt.http.HttpChannelRequest
com.ibm.btt.mobile.MobileRequest
- All Implemented Interfaces:
- ChannelRequest
public class MobileRequest
- extends HttpChannelRequest
This class used to wrap the HttpServletRequest. So the channel driver can use this to handle the request from client.
Constructor Summary |
MobileRequest(javax.servlet.http.HttpServletRequest request)
|
Method Summary |
void |
parseRequestData(ChannelContext channelContext)
Parse the request data, use serialization to read the request data |
boolean |
runInSession(ChannelContext channelContext)
Determines from the HandlerRegistry whether the device type
should run in a session. |
protected boolean |
usingCookies(ChannelContext channelContext)
Determines from the HandlerRegistry whether the device type is
using cookies to manage the session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MobileRequest
public MobileRequest(javax.servlet.http.HttpServletRequest request)
runInSession
public boolean runInSession(ChannelContext channelContext)
- Description copied from class:
BTTChannelRequest
- Determines from the HandlerRegistry whether the device type
should run in a session. Running in a session requires that the
application have a valid session and the operation has a parent context.
The default is to always run in a session to support backwards
compatibility. If the request is to run outside of a session, this method
adds "dse_ignore" to the application ID.
- Specified by:
runInSession
in interface ChannelRequest
- Overrides:
runInSession
in class BTTChannelRequest
- Parameters:
channelContex
- the channel context object
- Returns:
- true the mobile server side always run in session
usingCookies
protected boolean usingCookies(ChannelContext channelContext)
- Description copied from class:
BTTChannelRequest
- Determines from the HandlerRegistry whether the device type is
using cookies to manage the session. The default is to not use cookies to
support backwards compatibility.
- Overrides:
usingCookies
in class BTTChannelRequest
- Parameters:
channelContex
- the channel context object
- Returns:
- true the mobile server side always using cookie
parseRequestData
public void parseRequestData(ChannelContext channelContext)
throws java.lang.Exception
- Parse the request data, use serialization to read the request data
- Specified by:
parseRequestData
in interface ChannelRequest
- Overrides:
parseRequestData
in class HttpChannelRequest
- Parameters:
channelContex
- the channel context object
- Throws:
java.lang.Exception
- if error occur during parsing
(c) Copyright IBM Corporation 1998, 2010