public interface ExecutionContext extends BoundAttributeStore
| Modifier and Type | Field and Description | 
|---|---|
| static URI | DOCUMENT_URISometimes the document being transformed/analysed has a URI associated with it. | 
| Modifier and Type | Method and Description | 
|---|---|
| BeanContext | getBeanContext()Get the BeanContext in use on this context instance. | 
| String | getConfigParameter(String name)Get a global configuration parameter associated with this execution context. | 
| String | getConfigParameter(String name,
                  String defaultVal)Get a global configuration parameter associated with this execution context. | 
| String | getContentEncoding()Get the content encoding to be used when parsing content on this context. | 
| ApplicationContext | getContext()Get the application context within which this execution context "lives". | 
| ContentDeliveryConfig | getDeliveryConfig()Get the content delivery configuration for the profile set at which this
 context is targeted. | 
| URI | getDocumentSource()Get the document source URI. | 
| ExecutionEventListener | getEventListener()Get the ExecutionEventListener for the  ExecutionContext. | 
| ProfileSet | getTargetProfiles()Get the set of profiles at which this execution context is targeted. | 
| Throwable | getTerminationError()Set the error/exception that caused the filter operation associated with
 this ExecutionContext to terminate. | 
| boolean | isDefaultSerializationOn()Is default serialization on for this execution context. | 
| void | setBeanContext(BeanContext beanContext)Set the BeanContext to be use on this context instance. | 
| void | setContentEncoding(String contentEncoding)Set the content encoding to be used when parsing content on this context. | 
| void | setDocumentSource(URI docSource)Set the document source URI. | 
| void | setEventListener(ExecutionEventListener listener)Set the ExecutionEventListener for the  ExecutionContext. | 
| void | setTerminationError(Throwable terminationError)Set the error/exception that caused the filter operation associated with
 this ExecutionContext to terminate. | 
getAttribute, getAttributes, removeAttribute, setAttributestatic final URI DOCUMENT_URI
void setDocumentSource(URI docSource)
docSource - The document URI.URI getDocumentSource()
DOCUMENT_URI constant.ApplicationContext getContext()
ProfileSet getTargetProfiles()
ProfileSet.ContentDeliveryConfig getDeliveryConfig()
void setContentEncoding(String contentEncoding) throws IllegalArgumentException
contentEncoding - Character encoding to be used when parsing content.  Null
 defaults to "UTF-8".IllegalArgumentException - Invalid encoding.String getContentEncoding()
void setEventListener(ExecutionEventListener listener)
ExecutionContext.
 
 Allows calling code to listen to (and capture data on) specific
 context execution events e.g. the targeting of resources.
 
 Note, this is not a logging facility and should be used with care.
 It's overuse should be avoided as it can have a serious negative effect
 on performance.  By default, no listenrs are applied and so no overhead
 is incured.listener - The listener instance.BasicExecutionEventListenerExecutionEventListener getEventListener()
ExecutionContext.setEventListener(ExecutionEventListener)void setTerminationError(Throwable terminationError)
terminationError - The termination Error/Exception.Throwable getTerminationError()
String getConfigParameter(String name)
ParameterAccessor class.name - The name of the parameter.String getConfigParameter(String name, String defaultVal)
ParameterAccessor class.name - The name of the parameter.defaultVal - The default value to be returned if the configuration parameter is not set.boolean isDefaultSerializationOn()
Filter.DEFAULT_SERIALIZATION_ON
 global param.  Default Serialization is on by default.
 
 Example Configuration:
 
 <params>
     <param name="default.serialization.on">false</param>
 </params>
 BeanContext getBeanContext()
void setBeanContext(BeanContext beanContext)
beanContext - The BeanContext.Copyright © 2020. All rights reserved.