Package com.softwaremining.vendors.cics
Class SessionManager
java.lang.Object
com.softwaremining.vendors.cics.SessionManager
for internal use only
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
assignCurrentProgram
(CicsBaseService cicsProgramObj) void
assignHttpServletRequest
(javax.servlet.http.HttpServletRequest request) Assigned by Servletvoid
assignPreviousStringifiedDOValue
(String mapSet, String mapName, String stringifiedData) For internal use only Assign Previous Stringified DO Value Used in DATAONLY entry.void
void
assignTransferControlXTCLToProgramObj
(CicsBaseService cicsProgramObj) void
static DisplayRequest
getButtonsForRow
(int maxRowNumber) For internal use only The common work area (CWA) is a single control block that is allocated at system startup time and exists for the duration of that CICS session.For internal Use Onlyjavax.servlet.http.HttpSession
Return the HTTPSession associated with this session
the httpSession is set by PseudoCOnversationalServelets on activation of each page/session.for internal use onlyUsed internally by the frameworks.for internal use onlyfor internal use onlylong
int
getTally()
For internal use only TWA is a User Work Area which is common to all tasks in the session.boolean
For internal use onlyboolean
For internal use onlyvoid
initializeService
(CicsBaseService service, AcceptResponse acceptResponse) EXISTING instances of EIBASE and DFHAID to program when it gets activatedvoid
forces system to perform clean up at end of the session Used to indicate to owning HttpSession to invalidate itself (ie invokes httpSession.invalidate(); )boolean
used to indicate to owning HttpSession to invalidate itselfboolean
popScreenDataBuffer
(String mapNmapset_Name) void
void
javax.servlet.http.HttpServletRequest
returns the HttpServletRequest received by the Servlet engine.retrievePreviousStringifiedDOValue
(String mapSet, String mapName) For internal use only Retreive previos Stringified DO Value Used in DATAONLY entry.void
setAbendCode
(String abendCode) void
setAcceptResponse
(AcceptResponse acceptResponse) void
setCommunicationArea
(String commArea) void
setCommunicationAreaLength
(int communicationAreaLength) void
void
setDliCurrentScreenTransId
(String dliCurrentScreenTransId) void
setDliNextScreenTransId
(String dliNextScreenTransId) void
setDliPackageName
(String dliPackageName) void
setDliScratchPadArea
(String dliScratchPadArea) void
setDliScreenIOArea
(String dliScreenIOArea) For internal Use Onlyvoid
void
setInputMessage
(String inputMessage) void
setJspName
(String jspName) void
setLastDataSentToScreen
(String dataSentWithoutMap) for internal use onlyvoid
setNextProgramToRun
(String nextProgramToRun) void
setPackageName
(String packageName) void
setRedirectToHtmlPage
(String redirectToHtmlPage) Redirect to a HTML page e.g setRedirectToHtmlPage("index.html");
please call sessionManager.invalidate() to ensure session information is clearedvoid
setScreen
(AbstractScreen screen) void
setScreenDataBuffer
(String mapNmapset_Name, String newValue) void
setSessionId
(long newSessionId) void
setStartCode
(String startCode) void
setTally
(int tally) void
setTextToDisplay
(String textToDisplay) void
setTransactionId
(String transId) void
-
Field Details
-
_PreviousConvertedConversationInWaiting
-
conversationalBean
-
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
retrieveTransferControlXTCLToProgramObj
-
readjustDateTime
public void readjustDateTime() -
assignTransferControlXTCLToProgramObj
-
assignCurrentProgram
-
getCurrentProgram
-
getAbendCode
-
setAbendCode
-
initializeService
EXISTING instances of EIBASE and DFHAID to program when it gets activated- Parameters:
service
- - the reActivated service (program)acceptResponse
- - the latest data recieved from screencommArea
- - communication Area from previous program (service)
-
getCommunicationArea
-
setCommunicationArea
-
getTransactionId
-
setTransactionId
-
getInputMessage
-
setInputMessage
-
getNameCodeOfNextProgramToRun
-
setNextProgramToRun
-
addScreenRequestToBeProcessed
-
getOutstandingScreenRequests
-
clearOutstandingScreenRequests
public void clearOutstandingScreenRequests() -
getScreen
-
setScreen
-
getPackageName
Used internally by the frameworks.
package name of the runnable classes.
e,g something like "com.client.myapplication"- Returns:
- package name of the runnable classes.
-
setPackageName
-
assignToBeInvalidatedAtEndOfSession
public void assignToBeInvalidatedAtEndOfSession() -
isToBeInvalidatedAtEndOfSession
public boolean isToBeInvalidatedAtEndOfSession() -
invalidate
public void invalidate()forces system to perform clean up at end of the session Used to indicate to owning HttpSession to invalidate itself (ie invokes httpSession.invalidate(); ) -
isInvalidated
public boolean isInvalidated()used to indicate to owning HttpSession to invalidate itself- Returns:
-
getDfhaid
-
setDfhaid
-
getEibaid
-
setEibaid
-
setCommunicationAreaLength
public void setCommunicationAreaLength(int communicationAreaLength) -
setScreenDataBuffer
-
popScreenDataBuffer
-
getTextToDisplay
-
setTextToDisplay
-
getHttpSession
public javax.servlet.http.HttpSession getHttpSession()Return the HTTPSession associated with this session
the httpSession is set by PseudoCOnversationalServelets on activation of each page/session.- Returns:
-
assignHttpServletRequest
public void assignHttpServletRequest(javax.servlet.http.HttpServletRequest request) Assigned by Servlet- Parameters:
request
-
-
retrieveHttpServletRequest
public javax.servlet.http.HttpServletRequest retrieveHttpServletRequest()returns the HttpServletRequest received by the Servlet engine.
Access to this variable allows the application logic to directly query the request for other INPUT fields assigned in HTML - the ones which do not map to original BMS screens.- Returns:
-
assignPreviousStringifiedDOValue
For internal use only Assign Previous Stringified DO Value Used in DATAONLY entry. When A field has been sent as DATAONLY, and contains LOW_VALUES, then the previous values should be displayed -
retrievePreviousStringifiedDOValue
For internal use only Retreive previos Stringified DO Value Used in DATAONLY entry. When A field has been sent as DATAONLY, and contains LOW_VALUES, then the previous values should be displayed -
setRedirectToHtmlPage
Redirect to a HTML page e.g setRedirectToHtmlPage("index.html");
please call sessionManager.invalidate() to ensure session information is cleared- Parameters:
redirectToHtmlPage
-
-
getRedirectToHtmlPage
for internal use only- Returns:
-
getPreviousDisplayRequest
for internal use only- Returns:
-
getLastDataSentToScreen
for internal use only- Returns:
-
setLastDataSentToScreen
for internal use only -
releaseActiveSessionProgram
public void releaseActiveSessionProgram() -
getSessionId
public long getSessionId() -
setSessionId
public void setSessionId(long newSessionId) -
getDliScreenIOArea
For internal Use Only -
setDliScreenIOArea
For internal Use Only -
getDliScratchPadArea
-
setDliScratchPadArea
-
getDliCurrentScreenTransId
-
setDliCurrentScreenTransId
-
getDliPackageName
-
setDliPackageName
-
getDliNextScreenTransId
-
setDliNextScreenTransId
-
getButtonsForRow
-
getStartCode
-
setStartCode
-
getUserId
-
setUserId
-
getTransactionWorkArea
For internal use only TWA is a User Work Area which is common to all tasks in the session. This is a holdover from macro-level CICS and is seldom used.- Returns:
-
hasTransactionWorkArea
public boolean hasTransactionWorkArea()For internal use only- Returns:
-
getAcceptResponse
-
setAcceptResponse
-
getJspName
-
setJspName
-
getCommonWorkArea
For internal use only The common work area (CWA) is a single control block that is allocated at system startup time and exists for the duration of that CICS session. The size is specified configuration file using CICS_CWA_LENGTH- Returns:
-
hasCommonWorkArea
public boolean hasCommonWorkArea()For internal use only- Returns:
-
getFieldTally
-
getTally
public int getTally() -
setTally
public void setTally(int tally)
-