|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExecutionContext
Smooks execution context interface definition.
| Field Summary | |
|---|---|
static URI |
DOCUMENT_URI
Sometimes the document being transformed/analysed has a URI associated with it. |
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from interface org.milyn.container.BoundAttributeStore |
|---|
getAttribute, getAttributes, removeAttribute, setAttribute |
| Field Detail |
|---|
static final URI DOCUMENT_URI
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||