java.lang.Object
|
+--com.twinsoft.convertigo.engine.AbstractContext
|
+--com.twinsoft.convertigo.engine.Context
| Field Summary | |
java.lang.String |
absoluteSheetUrl
|
com.twinsoft.convertigo.engine.cache.CacheEntry |
cacheEntry
|
com.twinsoft.convertigo.beans.core.Connector |
connector
|
java.lang.String |
connectorName
|
java.lang.String |
contentType
|
long |
documentSignatureReceived
|
long |
documentSignatureSent
|
boolean |
isAsync
|
boolean |
isDestroying
|
boolean |
isErrorDocument
|
boolean |
isNewSession
|
boolean |
isRequestFromVic
|
boolean |
isTrustedRequest
|
boolean |
isXsltRequest
|
com.twinsoft.convertigo.beans.core.ScreenClass |
lastDetectedScreenClass
|
com.twinsoft.util.Log |
log
|
java.lang.String |
name
|
boolean |
noCache
|
com.twinsoft.convertigo.beans.core.Pool |
pool
|
int |
poolContextNumber
|
java.util.Hashtable |
previousFields
|
com.twinsoft.convertigo.beans.core.Project |
project
|
java.lang.String |
projectName
|
java.lang.String |
sheetUrl
|
com.twinsoft.convertigo.engine.EngineStatistics |
statistics
|
java.lang.String |
subPath
|
boolean |
tasSessionKeyVerified
|
com.twinsoft.convertigo.beans.core.Transaction |
transaction
|
java.lang.String |
transactionName
|
int |
waitingTransactions
|
| Fields inherited from class com.twinsoft.convertigo.engine.AbstractContext |
contextID, contextNum, creationTime, httpServletRequest, httpSession, inputDocument, isCacheEnabled, lastAccessTime, outputDocument, remoteAddr, remoteHost, requireEndOfContext, servletPath, steps, tasCommDevice, tasDteAddress, tasServiceCode, tasSessionKey, tasUserGroup, tasUserName, tasUserPassword, tasVirtualServerName, userAgent |
| Constructor Summary | |
Context(java.lang.String contextID)
|
|
| Method Summary | |
org.w3c.dom.Node |
addTextNode(org.w3c.dom.Node parentNode,
java.lang.String tagName,
java.lang.String text)
Adds a text node into the output XML document. |
org.w3c.dom.Node |
addTextNodeUnderBlocks(java.lang.String tagName,
java.lang.String text)
Adds a text node into the output XML document under the "blocks" node. |
org.w3c.dom.Node |
addTextNodeUnderRoot(java.lang.String tagName,
java.lang.String text)
Adds a text node into the output XML document under the root element. |
java.lang.String |
getProjectDirectory()
|
void |
reset()
|
boolean |
waitAtScreenClass(int timeout,
int hardDelay)
This method only concerns Minitel projects. |
boolean |
waitAtScreenClass(com.twinsoft.twinj.Javelin javelin,
int timeout,
int hardDelay)
|
boolean |
waitNextPage(com.twinsoft.twinj.Javelin javelin,
java.lang.String action,
int timeout,
int hardDelay)
|
boolean |
waitNextPage(java.lang.String action,
int timeout,
int hardDelay)
This method only concerns Minitel projects. |
| Methods inherited from class com.twinsoft.convertigo.engine.AbstractContext |
get, keys, remove, set |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public com.twinsoft.util.Log log
public java.lang.String name
public com.twinsoft.convertigo.engine.cache.CacheEntry cacheEntry
public boolean noCache
public boolean isDestroying
public boolean isErrorDocument
public boolean isXsltRequest
public boolean isAsync
public int waitingTransactions
public boolean isNewSession
public boolean isRequestFromVic
public boolean isTrustedRequest
public long documentSignatureSent
public long documentSignatureReceived
public com.twinsoft.convertigo.engine.EngineStatistics statistics
public java.util.Hashtable previousFields
public java.lang.String absoluteSheetUrl
public java.lang.String sheetUrl
public java.lang.String contentType
public com.twinsoft.convertigo.beans.core.Project project
public java.lang.String projectName
public com.twinsoft.convertigo.beans.core.Connector connector
public java.lang.String connectorName
public com.twinsoft.convertigo.beans.core.Pool pool
public int poolContextNumber
public com.twinsoft.convertigo.beans.core.Transaction transaction
public java.lang.String transactionName
public com.twinsoft.convertigo.beans.core.ScreenClass lastDetectedScreenClass
public java.lang.String subPath
public boolean tasSessionKeyVerified
| Constructor Detail |
public Context(java.lang.String contextID)
| Method Detail |
public void reset()
public java.lang.String getProjectDirectory()
getProjectDirectory in class com.twinsoft.convertigo.engine.AbstractContext
public org.w3c.dom.Node addTextNodeUnderRoot(java.lang.String tagName,
java.lang.String text)
com.twinsoft.convertigo.engine.AbstractContext
addTextNodeUnderRoot in class com.twinsoft.convertigo.engine.AbstractContexttagName - the text node tag name.text - the text to create.
public org.w3c.dom.Node addTextNodeUnderBlocks(java.lang.String tagName,
java.lang.String text)
com.twinsoft.convertigo.engine.AbstractContext
addTextNodeUnderBlocks in class com.twinsoft.convertigo.engine.AbstractContexttagName - the text node tag name.text - the text to create.
public org.w3c.dom.Node addTextNode(org.w3c.dom.Node parentNode,
java.lang.String tagName,
java.lang.String text)
com.twinsoft.convertigo.engine.AbstractContext
addTextNode in class com.twinsoft.convertigo.engine.AbstractContextparentNode - the parent node into which the text node should be inserted.tagName - the text node tag name.text - the text to create.
public boolean waitNextPage(java.lang.String action,
int timeout,
int hardDelay)
throws com.twinsoft.convertigo.engine.EngineException
com.twinsoft.convertigo.engine.AbstractContextThis method only concerns Minitel projects.
Waits for a new page for the same screen class or a new screen class. The method wait for one of the screens described by the screen classes in the project to arrive. We wait for all the screen classes except the current one. In the case of a next page on the same screen class, waitNextPage() will monitor the cursor position. the method will return when the cursor position returns to the same position it was before calling waitNextPage(). You can use waitNextPage() method to synchronize your handler before returning "redetect", "accumulate" or "skip".
waitNextPage in class com.twinsoft.convertigo.engine.AbstractContexttimeout - the time (in ms) we have to wait for the screen class.hardDelay - a delay (in ms) added after the nextpage has arrived.
com.twinsoft.convertigo.engine.EngineException
public boolean waitNextPage(com.twinsoft.twinj.Javelin javelin,
java.lang.String action,
int timeout,
int hardDelay)
throws com.twinsoft.convertigo.engine.EngineException
com.twinsoft.convertigo.engine.EngineException
public boolean waitAtScreenClass(int timeout,
int hardDelay)
throws com.twinsoft.convertigo.engine.EngineException
com.twinsoft.convertigo.engine.AbstractContextThis method only concerns Minitel projects.
Waits for one of the screens described by the screen classes in the project to arrive. The method waits for all the screen classes except the current one. You can use waitAtScreenClass() method to synchronize your handler before returning "redetect", "accumulate" or "skip".
waitAtScreenClass in class com.twinsoft.convertigo.engine.AbstractContexttimeout - the time (in ms) we have to wait for the screen class.hardDelay - a delay (in ms) added after the screen class has arrived.
com.twinsoft.convertigo.engine.EngineException
public boolean waitAtScreenClass(com.twinsoft.twinj.Javelin javelin,
int timeout,
int hardDelay)
throws com.twinsoft.convertigo.engine.EngineException
com.twinsoft.convertigo.engine.EngineExceptionSubmit a bug or feature
That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.