public interface ActivityContext
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivityName()
Returns the name of the activity.
|
Logger |
getAuditLogger()
Provides audit logging capabilities.
|
Exchange |
getCreatingExchange()
Returns the message exchange implementing the operation invocation for which
the activity is performed.
|
javax.xml.namespace.QName |
getInterface()
Returns the interface name of the service for which the activity is performed.
|
Message |
getMessage()
Returns the message that is the subject of the activity.
|
java.lang.String |
getOperation()
Returns the name of the operation for which the activity is performed.
|
java.lang.String |
getProcessId()
Returns the unique ID of the running process that is executing the activity.
|
javax.xml.namespace.QName |
getService()
Returns the name of the service for which the activity is performed.
|
javax.security.auth.Subject |
getSubject(java.lang.String category)
Returns the Subject with the given subject category.
|
java.util.Set<java.lang.String> |
getSubjectCategories()
Returns the categories of subjects associated with the process.
|
java.lang.Object |
getVariable(java.lang.String name)
Returns the value of the variable with the given name.
|
java.util.List<java.lang.String> |
getVariableNames()
Returns the names of the variables in the context of the process.
|
void |
setFault(Message fault)
Changes the fault message returned by an activity (if any).
|
void |
setFaultName(java.lang.String faultName)
Changes the name of the fault message returned by an activity (if any).
|
void |
setSubject(java.lang.String category,
javax.security.auth.Subject subject)
Adds or replaces the Subject with the given subject category.
|
void |
setVariable(java.lang.String name,
java.lang.Object value)
Adds or changes the value of the variable with the given name.
|
java.lang.String getActivityName()
java.lang.String getProcessId()
javax.xml.namespace.QName getService()
javax.xml.namespace.QName getInterface()
java.lang.String getOperation()
Exchange getCreatingExchange()
Message getMessage()
java.util.List<java.lang.String> getVariableNames()
java.lang.Object getVariable(java.lang.String name)
name
- Name of the variable.void setVariable(java.lang.String name, java.lang.Object value)
name
- Name of the variable.value
- New value of the variable.java.util.Set<java.lang.String> getSubjectCategories()
javax.security.auth.Subject getSubject(java.lang.String category)
category
- Category of the subject to return.void setSubject(java.lang.String category, javax.security.auth.Subject subject)
category
- Category of the subject.subject
- Subject to add/replace.void setFault(Message fault)
fault
- Fault object holding the fault returned by an
activity, null if none returned.void setFaultName(java.lang.String faultName)
faultName
- Name of the fault message, null if none returned.Logger getAuditLogger()
com.soa.log.Logger
. The audit log statements are governed by and viewed
in the management application. Each log statement has a different level of importance or purpose,
debug, warning, or error in that order. These statements will only be seen in the
log if the handler is invoked with a level equal to or greater than that statement.?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.