com.ibm.btt.http
Class HttpChannelRequest
java.lang.Object
com.ibm.btt.channel.BTTChannelRequest
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
request
protected javax.servlet.http.HttpServletRequest request
HttpChannelRequest
public HttpChannelRequest(javax.servlet.http.HttpServletRequest request)
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)
(c) Copyright IBM Corporation 1998, 2008