About this task
To migrate APIs, do the following changes:
- Change Settings.reset(iniFile) to InitManager.reset(iniFile)
- Use Context ctx=(Context)ContextFactory.createContext(name, false) to
create context, where False refers to local context.
- Change SessionEntry. getTimeStamp() to CSSessionHandler.getTimeStamp(SessionEntry).
- Change (HttpServletRequest)channelContext.getChannelRequest() to (HttpServletRequest)channelContext.getChannelRequest().getRequest().
- Change HttpServletResponse res=(HttpServletResponse)channelContext.getChannelResponse().getResponse() to (HttpServletRequest)channelContext.
getChannelResponse ().getResponse ().
- Change Context.getRoot() to ContextFactory.getRoot().
- Change Context.getSession(sessionId) to CSSessionHandler.getSession(sessionId).
- Change Context.getCurrentContextForSession(sessionId) to CSSessionHandler.getCurrentContextForSession(sessionId).
- Change Context.getTIDForSession(s) to CSSessionHandler.getTIDForSession(string).
- Change Context.setSessionObjectForSession() to CSSessionHandler.
setSessionObjectForSession().
- Change Context.setTimeStampForSession() to CSSessionHandler.setTimeStampForSession().
- Change Context.removeSession(sessionId) to CSSessionHandler.removeSession(sessionId)
- Change Context.getTypeForSession() to CSSessionHandler.getTypeForSession().
- Change Context.getSessionTable() to CSSessionHandler.getSession(sessionId)
- Change formatter.unformat(Label13Value,Operation) to formatter.unformat(Label13Value,Context).
- Change Formatter.format(Operation) to Formatter.format(Context).
- In the HtmlRequestHandler, change return type to Object in public
ServerOperation executeRequest(ChannelContext channelContext).