|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.container.MockExecutionContext
public class MockExecutionContext
| Fields inherited from interface org.milyn.container.ExecutionContext |
|---|
DOCUMENT_URI |
| Constructor Summary | |
|---|---|
MockExecutionContext()
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(Object key)
Returns the object bound with the specified name in this BoundAttributeStore
implementation, or null if no object is bound under the name. |
Map |
getAttributes()
Returns the Map of attributes bound in this BoundAttributeStore |
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. |
MockContentDeliveryConfig |
getMockDeliveryConfig()
|
Enumeration |
getParameterNames()
|
String[] |
getParameterValues(String name)
|
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 |
removeAttribute(Object key)
Removes the object bound with the specified name from this BoundAttributeStore
implementation. |
void |
setAttribute(Object key,
Object value)
Binds an object to this BoundAttributeStore implementation, using the name
specified. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String contextPath
public URI docSource
public ProfileSet profileSet
public ContentDeliveryConfig deliveryConfig
public MockApplicationContext context
public LinkedHashMap parameters
public Hashtable headers
public Hashtable elementListTable
| Constructor Detail |
|---|
public MockExecutionContext()
| Method Detail |
|---|
public void setDocumentSource(URI docSource)
ExecutionContext
setDocumentSource in interface ExecutionContextdocSource - The document URI.public URI getDocumentSource()
ExecutionContextExecutionContext.DOCUMENT_URI constant.
getDocumentSource in interface ExecutionContextpublic Enumeration getParameterNames()
public String[] getParameterValues(String name)
public ApplicationContext getContext()
ExecutionContext
getContext in interface ExecutionContextpublic ProfileSet getTargetProfiles()
ExecutionContext
getTargetProfiles in interface ExecutionContextProfileSet.public ContentDeliveryConfig getDeliveryConfig()
ExecutionContext
getDeliveryConfig in interface ExecutionContext
public void setContentEncoding(String contentEncoding)
throws IllegalArgumentException
ExecutionContext
setContentEncoding in interface ExecutionContextcontentEncoding - Character encoding to be used when parsing content. Null
defaults to "UTF-8".
IllegalArgumentException - Invalid encoding.public String getContentEncoding()
ExecutionContext
getContentEncoding in interface ExecutionContextpublic void setEventListener(ExecutionEventListener listener)
ExecutionContextExecutionContext.
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.
setEventListener in interface ExecutionContextlistener - The listener instance.BasicExecutionEventListenerpublic ExecutionEventListener getEventListener()
ExecutionContextExecutionContext.
getEventListener in interface ExecutionContextExecutionContext.setEventListener(ExecutionEventListener)public void setTerminationError(Throwable terminationError)
ExecutionContext
setTerminationError in interface ExecutionContextterminationError - The termination Error/Exception.public Throwable getTerminationError()
ExecutionContext
getTerminationError in interface ExecutionContext
public void setAttribute(Object key,
Object value)
BoundAttributeStoreBoundAttributeStore implementation, using the name
specified. If an object of the same name is already bound, the object
is replaced.
setAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.value - The object to be bound; cannot be null.public Object getAttribute(Object key)
BoundAttributeStoreBoundAttributeStore
implementation, or null if no object is bound under the name.
getAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.
BoundAttributeStore
implementation, or null if no object is bound under the name.public void removeAttribute(Object key)
BoundAttributeStoreBoundAttributeStore
implementation. If the BoundAttributeStore implementation does
not have an object bound with the specified name, this method does nothing.
removeAttribute in interface BoundAttributeStorekey - The key against which the object is bound; cannot be null.public MockContentDeliveryConfig getMockDeliveryConfig()
public Map getAttributes()
BoundAttributeStoreBoundAttributeStore
getAttributes in interface BoundAttributeStoreBoundAttributeStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||