Package oracle.as.scheduler.substitution
Class RequestContextSubstitutionHandler
java.lang.Object
oracle.as.scheduler.substitution.RequestContextSubstitutionHandler
- All Implemented Interfaces:
SubstitutionHandler
This
SubstitutionHandler makes the elements of ReqeustExecutionContext
available as substitutions.
ID: ESS_REQ_CONTEXT
It provides the following elements:
| Name | Context element |
|---|---|
| REQUEST_ID | getRequestID() |
| IS_RESUMED | isResumed() |
| PAUSED_STATE | getPausedState() |
| REQUEST_HANDLE | getRequestHandle() |
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Used to release any resources the handler may have claimed, such as open files or connections.booleancontainsKey(String name) Reports whether the handler can return a value to substitute forname.Gets the value which will be used to replace the token.getId()An identifier that can be used to request that a specific handler (or set of handlers) should be used for a substitution.
-
Constructor Details
-
RequestContextSubstitutionHandler
-
-
Method Details
-
getId
Description copied from interface:SubstitutionHandlerAn identifier that can be used to request that a specific handler (or set of handlers) should be used for a substitution.The returned ID should adhere to basic identifier rules, e.g., it should consist of letters, numbers, and underscores only. A
null, blank, or invalid ID may result in the handler being skipped.The method
getId()may be called at any time.- Specified by:
getIdin interfaceSubstitutionHandler- Returns:
- Handler identifier
-
containsKey
Description copied from interface:SubstitutionHandlerReports whether the handler can return a value to substitute forname. IfcontainsKeyreturnsfalse, then this handler will not be used for substitutingname.- Specified by:
containsKeyin interfaceSubstitutionHandler- Parameters:
name- the key value being checked- Returns:
- Returns
trueif it can handlename,falseotherwise
-
get
Description copied from interface:SubstitutionHandlerGets the value which will be used to replace the token. Ifnameis not supported, thenget()should returnnull. Conversely, if the handler returnstrueforcontainsKey, thenget()should return a non-null String.- Specified by:
getin interfaceSubstitutionHandler- Parameters:
name- The key value for the substitution- Returns:
- the value. This may contain other substitution tokens.
-
close
public void close()Description copied from interface:SubstitutionHandlerUsed to release any resources the handler may have claimed, such as open files or connections.- Specified by:
closein interfaceSubstitutionHandler
-