Package com.softwaremining.cics
Class SessionManager
java.lang.Object
com.softwaremining.cics.SessionManager
for internal use only
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidassignCurrentProgram(CicsBaseService cicsProgramObj) voidassignHttpServletRequest(jakarta.servlet.http.HttpServletRequest request) Assigned by ServletvoidassignPreviousStringifiedDOValue(String mapSet, String mapName, String stringifiedData) For internal use only Assign Previous Stringified DO Value Used in DATAONLY entry.voidvoidassignTransferControlXTCLToProgramObj(CicsBaseService cicsProgramObj) voidstatic DisplayRequestgetButtonsForRow(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 Onlyjakarta.servlet.http.HttpSessionReturn 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 onlylongintgetTally()For internal use only TWA is a User Work Area which is common to all tasks in the session.booleanFor internal use onlybooleanFor internal use onlyvoidinitializeService(CicsBaseService service, AcceptResponse acceptResponse) EXISTING instances of EIBASE and DFHAID to program when it gets activatedvoidforces system to perform clean up at end of the session Used to indicate to owning HttpSession to invalidate itself (ie invokes httpSession.invalidate(); )booleanused to indicate to owning HttpSession to invalidate itselfbooleanpopScreenDataBuffer(String mapNmapset_Name) voidvoidjakarta.servlet.http.HttpServletRequestreturns 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.voidsetAbendCode(String abendCode) voidsetAcceptResponse(AcceptResponse acceptResponse) voidsetCommunicationArea(String commArea) voidsetCommunicationAreaLength(int communicationAreaLength) voidvoidsetDliCurrentScreenTransId(String dliCurrentScreenTransId) voidsetDliNextScreenTransId(String dliNextScreenTransId) voidsetDliPackageName(String dliPackageName) voidsetDliScratchPadArea(String dliScratchPadArea) voidsetDliScreenIOArea(String dliScreenIOArea) For internal Use OnlyvoidvoidsetInputMessage(String inputMessage) voidsetJspName(String jspName) voidsetLastDataSentToScreen(String dataSentWithoutMap) for internal use onlyvoidsetNextProgramToRun(String nextProgramToRun) voidsetPackageName(String packageName) voidsetRedirectToHtmlPage(String redirectToHtmlPage) Redirect to a HTML page e.g setRedirectToHtmlPage("index.html");
please call sessionManager.invalidate() to ensure session information is clearedvoidsetScreen(AbstractScreen screen) voidsetScreenDataBuffer(String mapNmapset_Name, String newValue) voidsetSessionId(long newSessionId) voidsetStartCode(String startCode) voidsetTally(int tally) voidsetTextToDisplay(String textToDisplay) voidsetTransactionId(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 jakarta.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(jakarta.servlet.http.HttpServletRequest request) Assigned by Servlet- Parameters:
request-
-
retrieveHttpServletRequest
public jakarta.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)
-