Skip Headers
Oracle® Web Services Manager Extensibility Guide
10g (10.1.3.3.0)

Part Number E10300-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

3 Policy Steps SDK Interfaces & Methods

This chapter contains reference information for the Oracle Web Services Manager (Oracle WSM) Step Software Development Kit (SDK). The Oracle WSM Step SDK contains the following interfaces and classes:

IStep

Interface IStep

Known Implementing Classes

AbstractStep

Declaration

public interface IStep

Description

A step is a basic execution block in the pipeline. A step is a Java Bean that is configured using the Java Beans framework. The AbstractStep class is an abstract class that provides partial implementation of this interface. A step may use resource pooling mechanisms to efficiently handle multiple requests, but it should not keep any per-invocation state.

Table 3-1 Methods of IStep

Method Description

setEnabled()

Enables or disables this step.

getEnabled()

Gets the boolean value from setEnabled.

setStepName()

Sets the name of this step.

getStepName()

Gets the step name.

getAgentContext()

Gets context information for the policy enforcement point.

setAgentContext()

Sets the agent context.

execute()

Executes this step.

init()

This method is called after the Java bean is created or after a Java bean property has changed.

destroy()

Ensures a clean ending to the step lifecycle.

getFaultCodes()

Gets the fault codes that are thrown by this step.

setFaultCodes()

Sets the fault codes that are thrown by this step.


setEnabled()

Declaration

public void setEnabled(boolean enabled)

Description

Enables or disables this step.

Parameters

Enabled – If true, the step is enabled.

getEnabled()

Declaration

public boolean getEnabled()

Description

Gets the boolean value from setEnabled.

Returns

One of the boolean values – true or false. If the step is enabled, this method returns the value, true.

setStepName()

Declaration

public void setStepName(java.lang.String stepName)

Description

Sets the name of this step.

Parameters

stepName – Name of the step.

getStepName()

Declaration

public java.lang.String getStepName()

Description

Gets the step name.

Returns

The name of this step.

getAgentContext()

Declaration

public AgentContext getAgentContext()

Description

Gets context information for policy enforcement point.

setAgentContext()

Declaration

public void setAgentContext(AgentContext context)

Description

Sets the agent context.

Parameters

context (of type AgentContext) – Represents the information of an agent during the pipeline execution.

execute()

Declaration

public IResult execute(IMessageContext context)
     Throws Fault

Description

Executes this step.

Parameters

context – message context containing the request and response.

Returns

IResult – On successful execution of this method.

Fault – Fault type exception, if it gets thrown.

init()

Declaration

public void init()
     throws java.lang.IllegalStateException

Description

This method is called after the Java bean is created or after a Java bean property has changed.

Throws

java.lang.IllegalStateException

destroy()

Declaration

public void destroy()
     throws java.lang.IllegalStateException

Description

Use the destroy method to ensure a clean ending to the step lifecycle.

setFaultCodes()

Declaration

void setFaultCodes(String[]faultCodes)

Description

Set the fault codes that are thrown by this step.

Parameters

faultCodes (of type String[]) – Fault codes thrown by the step.

getFaultCodes()

Declaration

String[]getFaultCodes()

Description

Get the fault codes that are thrown by this step.

Returns

The string array of the fault codes thrown by this step.

AbstractStep

com.cfluent.policysteps.sdk.AbstractStep

Declaration

public abstract class AbstractStep

extends

java.lang.Object

implements

IStep

Description

A default implementation of IStep. The implementation should at least override the IStep execute method.

Table 3-2 Methods of AbstractStep

Method Description

createResult()

Called after the Java bean is created or after a Java bean property has changed.

setEnabled()

If set to true, the step is enabled.

getEnabled()

Returns the value of setEnabled; true if the step is enabled, otherwise false.

setStepName()

Sets the name of this step.

getStepName()

Gets the step name.

getAgentContext()

getAgentContext in interface IStep

setAgentContext()

Sets the agent context.

execute()

Throws FaultExecute for this step. Step implementations should override this method to perform desired tasks.

init()

Throws java.lang.IllegalStateException. This method is called after the Java bean is created or after a Java bean property has changed.

getFaultCodes()

Gets the fault codes thrown by this step.

setFaultCodes()

Sets the fault codes thrown by this step.

destroy()

Ensures a clean ending to the step lifecycle.

generateFault()

Generates faults for this step.

createResult()

Creates the result for this step.


createResult()

Declaration

protected IResult createResult(int status)

Parameters

int status

Description

This method is called after the Java bean is created or after a Java bean property has changed.

Table 3-3 Fields for createResult()

Variable Description

m_name

Protected java.lang.String m_name.

m_enabled

Protected boolean m_enabled.

m_context

Protected AgentContext m_context.


setEnabled()

Declaration

public final void setEnabled(boolean enabled)

Description

Enables or disables this step.

Parameters

boolean enabled

Specified by

setEnabled in interface IStep

Parameters

enabled – If true, the step is enabled.

getEnabled()

Declaration

public final boolean getEnabled()

Description

Checks to see if the step is enabled.

Specified by

getEnabled in interface IStep

Returns

One of the boolean values – true or false. If the step is enabled, this method returns the value, true

setStepName()

Declaration

public final void setStepName(java.lang.String stepName)

Description

Sets the name of this step.

Specified by

setStepName in interface IStep

Parameters

stepName – Name of the step.

getStepName()

Declaration

public final java.lang.String getStepName()

Description

Gets the step name.

Specified by

getStepName in interface IStep

Returns

The name of this step.

getAgentContext()

Declaration

public final AgentContext getAgentContext()

Description

Retrieves the agent context for the step.

Parameters

context

Specified by

getAgentContext in interface IStep

setAgentContext()

Declaration

public final void setAgentContext(AgentContext context)

Description

Sets the agent context.

Specified by

setAgentContext in interface IStep

execute()

Declaration

public abstract IResult execute(IMessageContext messageContext)

Description

Executes the step. Step implementations should override this method to perform desired tasks.

Specified by

execute in interface IStep.

Parameters

messageContext – Message context containing the request and response.

Returns

Depending on result of execution, can return IResult or Fault.

init()

Declaration

public void init()

Description

Throws java.lang.IllegalStateException. This method is called after the Java bean is created or after a Java bean property has changed.

Specified by

init in interface IStep.

Throws

java.lang.IllegalStateException.

generateFault()

Declaration

protected void generateFault(Fault fault)

Description

Generates faults for this step.

Throws

Fault

destroy()

Declaration

public void destroy()
     throws java.lang.IllegalStateException

Description

Use the destroy method to ensure a clean end to the step lifecycle.

Specified By

destroy in interface IStep.

setFaultCodes()

Declaration

void setFaultCodes(String[] faultCodes)

Description

Sets the fault codes thrown by this step.

Specified By

init in interface IStep.

Parameters

faultCodes (of type String[]) – Fault codes thrown by the step.

getFaultCodes()

Declaration

String[] getFaultCodes()

Description

Gets the fault codes thrown by this step.

Specified By

init in interface IStep.

Returns

A string array of the fault codes thrown by this step.

createResult()

Declaration

protected IResult createResult(int status)

Description

Creates the result for this step.

IContext

Interface IContext

Subinterfaces

IMessageContext

Declaration

public interface IContext

Description

Information about the pipeline execution context with regard to a component.

Table 3-4 Methods of IContext()

Method Description

getProperty()

Searches for a specific property and returns the value of the property (propName).

getPropertyNames()

Returns an iterator on all the property names.

containsProperty()

Checks whether a specified property (propName) exists.

setProperty()

Sets the value of a specified property (propName).

removeProperty()

Removes a specified property (propName).


getProperty()

Declaration

public java.lang.Object getProperty(java.lang.String propName)

Description

Searches for a specific property and returns the value of that property.

Returns

The value for propName.

getPropertyNames()

Declaration

public java.util.Iterator getPropertyNames()

Description

Returns an iterator on all the property names.

containsProperty()

Declaration

public boolean containsProperty(java.lang.String propName)

Description

Checks for the presence of a specific property.

Returns

One of the boolean values – true or false.

setProperty()

Declaration

public void setProperty(java.lang.String propName,
java.lang.Object obj,
boolean persistent)

Parameters

propName, obj, persistent.

Description

Sets a property to a specified value.

removeProperty()

Declaration

public void removeProperty(java.lang.String propName)

Parameters

propName

Description

Removes a specific property.

IMessageContext

Interface IMessageContext

Declaration

public interface IMessageContext
extends IContext

Description

Provides contextual information about messages that the step handles.

All Superinterfaces

IContext

Inheritance from interface com.cfluent.policysteps.sdk.IContext

containsProperty, getProperty, getPropertyNames, removeProperty, setProperty, setProperty.

Table 3-5 IMessageContext() Static Fields

Field Description

STAGE_PREREQUEST

Indicates the prerequest processing stage.

STAGE_REQUEST

Indicates the request processing stage.

STAGE_RESPONSE

Indicates the response processing stage.

STAGE_POSTRESPONSE

Indicates the postresponse processing stage.

STAGE_SERVICE

Indicates that the message is at the service stage.

STAGE_SERVICE_DEFINITION

Provides a Web service definition.

STAGE_SERVICE_WSDL

Identifies the Web service WSDL.


Table 3-6 Methods of IMessageContext()

Method Description

getGUID()

Gets the global unique ID.

getServiceID()

Gets the service ID.

getService URL()

Gets the service URL.

getRemoteUser()

Gets the remote user.

getRequestMessage()

Gets the SOAP request.

getResponseMessage()

Gets the SOAP response.

setRequestMessage()

Sets the request message.

setResponseMessage()

Sets the response message.

getProcessingStage()

Gets the processing stage information.

setProcessingStage()

Sets the processing stage.

getInvocationStatus()

Gets the invocation status.

setUserLocale()

Sets the user locale. The protocol handlers use this method to look for locale information in the message properties and message headers. If the locale information is found, the locale is set. If the locale information is not found, the user locale defaults to the product locale.

getUserLocale()

Gets the user locale. The policy step implementation code uses the user locale to provide the SOAP faults in the user's specified locale.


MessageContext() Fields

STAGE_PREREQUEST

Declaration

public static final java.lang.String STAGE_PREREQUEST

Description

Indicates the prerequest processing stage.

STAGE_REQUEST

Declaration

public static final java.lang.String STAGE_REQUEST

Description

Indicates the request processing stage.

STAGE_RESPONSE

Declaration

public static final java.lang.String STAGE_RESPONSE

Description

Indicates the response processing stage.

STAGE_POSTRESPONSE

Declaration

public static final java.lang.String STAGE_POSTRESPONSE

Description

Indicates the postresponse processing stage.

STAGE_SERVICE

Declaration

public static final java.lang.String STAGE_SERVICE

Description

Indicates that the message is at the service.

STAGE_SERVICE_DEFINITION

Declaration

public static final java.lang.String STAGE_SERVICE_DEFINITION

Description

Provides a service definition.

STAGE_SERVICE_WSDL

Declaration

public static final java.lang.String STAGE_SERVICE_WSDL

Description

Identifies the service WSDL.

getGUID()

Declaration

public java.lang.String getGUID()

Description

Gets the global unique ID.

Returns

The global unique ID.

getServiceID()

Declaration

public java.lang.String getServiceID()

Description

Gets the service ID.

Returns

The ID of the service based on the service registration information in Oracle WSM.

getServiceURL()

Declaration

public java.lang.String getRemoteUser()

Description

Gets the service URL.

Returns

The service URL for this pipeline.

getRemoteUser()

Declaration

public java.lang.String getRemoteUser()

Description

Gets the ID of the service requestor.

Returns

Gets the remote user.

getRequestMessage()

Declaration

public com.cfluent.ccore.message.SOAPMessage getRequestMessage()

Description

Gets the SOAP request.

Returns

The SOAP request message.

getResponseMessage()

Declaration

public com.cfluent.ccore.message.SOAPMessage getResponseMessage()

Description

Gets the SOAP response.

Returns

The SOAP response message.

setRequestMessage()

Declaration

public void setRequestMessage(com.cfluent.ccore.message.SOAPMessage requestMessage)

Description

Sets the request message.

setResponseMessage()

Declaration

public void setResponseMessage(com.cfluent.ccore.message.SOAPMessage responseMessage)

Description

Sets the response message.

getProcessingStage()

Declaration

public java.lang.String getProcessingStage()

Description

Gets the processing stage information.

Returns

The information from the processing stage.

setProcessingStage()

Declaration

public void setProcessingStage(java.lang.String stage)

Description

Sets the processing stage.

getInvocationStatus()

Declaration

public InvocationStatus getInvocationStatus()

Description

Gets the invocation status.

Returns

The invocation status.

IResult

Declaration

public class IResult()

extends

java.lang.Object

Methods Inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll

Constructor

public Result()

Table 3-7 Methods of IResult

Method Description

getStatus()

Gets the execution status.

setStatus()

Set the execution status.

getFault()

Returns the fault that caused the request execution failure.

setFault()

Sets the fault that caused this request execution to fail. The framework sets this fault if all the applicable fault handlers have failed. Step implementations should only call the generateFault method.


getStatus()

Declaration

public int getStatus()

Description

Gets the execution status.

Specified by

getStatus in interface IResult.

Returns

The execution status.

setStatus()

Declaration

public void setStatus(int status)

Description

Sets the execution status.

Specified by

setStatus in interface IResult.

Parameters

status – Sets the execution status.

getFault()

Declaration

public Fault getFault()

Description

The fault that caused the request execution failure. The framework sets the fault if all the applicable fault handlers have failed.

Specified by

getFault in interface IResult.

Returns

The fault that caused the request failure.

setFault()

Declaration

public void setFault(Fault fault)

Description

Sets the fault that caused the request execution failure. The framework sets the fault if all the applicable fault handlers have failed. Step implementations should only call the generateFault method.

Specified by

setFault in interface IResult

Parameters

fault

Result

Declaration

public class Result()

extends

java.lang.Object

implements

IResult

Methods Inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll

Constructor

public Result()

Fields Inherited from interface com.cfluent.policysteps.sdk.IResult

FAILED, SUCCEEDED, SUSPENDED

Table 3-8 Methods of Result

Method Description

getStatus()

Gets the execution status.

setStatus()

Set the execution status.

getFault()

Returns the fault that caused the request execution failure.

setFault()

Sets the fault that caused this request execution to fail. The framework sets this fault if all the applicable fault handlers have failed. Step implementations should only call the generateFault method.

toString()

Result in string form


getStatus()

Declaration

public int getStatus()

Description

Gets the execution status.

Specified by

getStatus in interface IResult.

Returns

The execution status.

setStatus()

Declaration

public void setStatus(int status)

Description

Sets the execution status.

Specified by

setStatus in interface IResult.

Parameters

status – Sets the execution status.

getFault()

Declaration

public Fault getFault()

Description

The fault that caused the request execution failure. The framework sets the fault if all the applicable fault handlers have failed.

Specified by

getFault in interface IResult.

Returns

The fault that caused the request failure.

setFault()

Declaration

public void setFault(Fault fault)

Description

Sets the fault that caused the request execution failure. The framework sets the fault if all the applicable fault handlers have failed. Step implementations should only call the generateFault method.

Specified by

setFault in interface IResult

Parameters

fault

toString()

Declaration

public java.lang.String toString()

Overrides

toString in class java.lang.Object

Returns

The result in string format.

AgentContext

Declaration

public class AgentContext

extends

java.lang.Object

Properties

agentID, resolver, properties.

Description

Provides methods to retrieve and work with agent context information.

Constructor

public AgentContext(java.lang.String agentId,

com.cfluent.common.resource.IResourceResolver resolver,

java.util.Map properties)

throws java.io.IOException

Table 3-9 AgentContext Static Fields

Field Description

SERVER_ID

Component ID.

LOG_LOGBUNDLES

Bundles for the log.

LOG_LOGENABLED

Specifies whether logging is enabled.

COREMAN_ENABLED

Specifies whether the Oracle WSM Monitor is enabled.

POLICYSERVER_ENDPOINT

Specifies the Oracle WSM Policy Manager endpoint.

POLICYSERVER_ENABLED

Specifies that the Oracle WSM Policy Manager is enabled.

POLICYPACKS_FILENAME

Policy packs file name (internal property).


Table 3-10 Methods of AgentContext

Method Description

getAgentID()

Gets the agent ID as a string.

getProperty()

Gets the property value for a specified propName.

getStringProperty()

Gets the value of the specified property. Returns null if the property does not exist.

getIntProperty()

Gets a property as an integer (primitive).

getResourceResolver()

Gets the resolver to a resource. The resolver is used to get the absolute path to the resource.

getAllProperties()

Gets all the properties as a key-value pair.


AgentContext Fields

SERVER_ID

Declaration

public static java.lang.String SERVER_ID

Description

Value for the component ID.

LOG_LOGBUNDLES

Declaration

public static java.lang.String LOG_LOGBUNDLES

Description

Bundles for the log.

LOG_LOGENABLED

Declaration

public static final java.lang.String LOG_LOGENABLED

Description

Property if logging is enabled.

COREMAN_ENABLED

Declaration

public static final java.lang.String COREMAN_ENABLED

Description

Property that specifies that the Oracle WSM Monitor is enabled.

POLICYSERVER_ENDPOINT

Declaration

public static final java.lang.String POLICYSERVER_ENDPOINT

Description

Property for Oracle WSM Policy Manager endpoint.

POLICYSERVER_ENABLED

Declaration

public static final java.lang.String POLICYSERVER_ENABLED

Description

Specifies that Oracle WSM Policy Manager is enabled.

POLICYPACKS_FILENAME

Declaration

public static final java.lang.String POLICYPACKS_FILENAME

Description

Property for policy packs file name.

getAgentID()

Declaration

public java.lang.String getAgentID()

Description

Gets the agent ID. The agent ID is configured in the config.xml file and is loaded by the constructor as a property during initialization.

Returns

The agent ID as a string.

getProperty()

Declaration

public java.lang.Object getProperty(java.lang.String propName)

Description

Gets the property value for a specified propName.

Parameters

propName – Name of the property for which the value needs to be retrieved.

Returns

The value of specified property. It returns a null if the property does not exist.

getStringProperty()

Declaration

public java.lang.String getStringProperty(java.lang.String propName,
java.lang.String defaultValue)

Description

Gets the property value as a string.

Parameters

propName – Name of the property for which the value needs to be retrieved.

Returns

The string representation of the value of the property in argument. It returns a null if the property is not available.

getIntProperty()

Declaration

public int getIntProperty(java.lang.String propName)

Description

Gets a property as an integer (primitive).

Parameters

propName – Name of the property for which the value needs to be retrieved.

Returns

An integer (primitive) value of the property name in the argument.

getIntProperty()

Declaration

public int getIntProperty(java.lang.String propName,
java.lang.string defaultValue)

Description

Fetches the value of a property in the argument.

Parameters

propName – Name of the property for which the value needs to be retrieved.

defaultValue – Default value that is returned if the property is not available.

Returns

The value of the property in the argument. It returns the value if the property exists; returns the default value in the argument, if the property is not available.

getResourceResolver()

Declaration

IResourceResolver getResourceResolver()

Description

Gets the resolver to a resource. The resolver is used to get the absolute path to the resource.

Returns

The object of type IResourceResolver.

getAllProperties()

Declaration

public java.util.Map getAllProperties()

Description

Gets all the properties as a key-value pair.

Returns

Then object of type Map, containing key-value pairs of the properties.

InvocationStatus

Declaration

public class InvocationStatus

extends

java.lang.Object

Implements

java.io.Serializable

Inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll

Description

This class sends step execution status to the Oracle WSM Monitor. The Oracle WSM Monitor uses this information to interpret measurements.

Constructor

public InvocationStatus()

Table 3-11 Fields of InvocationStatus

Field Description

SUCCEEDED

Invocation Succeeded flag.

FAILED

Invocation failure flag.

FAILEDOVER

Failed Over flag.

PENDING

Measurement or execution pending.

NA

Object not available.


Table 3-12 Methods of InvocationStatus

Method Description

getServiceName()

Gets the name of the service being invoked.

setServiceName()

Sets the service name.

getTime()

Gets the time.

setTime()

Sets the time.

getAuthenticationStatus()

Gets the authentication status.

setAuthenticationStatus()

Sets the authentication status.

getAuthorizationStatus()

Gets the authorization status.

setAuthorizationStatus()

Sets the authorization status.

getServiceStatus()

Gets the service status.

setServiceStatus()

Sets the service status.

getInvocationStatus()

Gets the invocation status.

setInvocationStatus()

Sets the invocation status.

getSize()

Gets the size.

setSize()

Sets the size.

getLatency()

Gets the default value for overall latency for policy pipelines.

setLatency()

Sets the value for overall latency.

getServiceLatency()

Gets the value for service latency in milliseconds.

setServiceLatency()

Sets the value for service latency in milliseconds.

getFlowID()

Gets the flow ID.

setFlowID()

Sets the flow ID.

getMethod()

Gets the method.

setMethod()

Sets the method.

getCorrelationContext()

Gets the correlation.

setCorrelationContext()

Sets the correlation.

getMessageId()

Gets the message ID.

setMessageId()

Sets the message ID.

getErrorMessage()

Gets the error message for the failure.

setErrorMessage()

Sets the error message on failure.

toString()

String representation of the object.


InvocationStatus() Fields

SUCCEEDED

Declaration

public static final int SUCCEEDED

Description

Invocation succeeded flag.

FAILED

Declaration

public static final int FAILED

Description

Invocation failure flag.

FAILEDOVER

Declaration

public static final int FAILEDOVER

Description

Failed Over flag.

PENDING

Declaration

public static final int PENDING

Description

Measurement or execution pending.

NA

Declaration

public static final int NA

Description

Object not available.

getServiceName()

Declaration

public java.lang.String getServiceName()

Description

Gets the name of the service being invoked.

Returns

The name of the service being invoked.

setServiceName()

Declaration

public void setServiceName(java.lang.String name)

Description

Sets the service name.

getTime()

Declaration

public long getTime()

Description

Gets the time.

setTime()

Declaration

public void setTime(long time)

Description

Sets the time.

Parameters

time

getAuthenticationStatus()

Declaration

public int getAuthenticationStatus()

Description

Gets the authentication status.

setAuthenticationStatus()

Declaration

public void setAuthenticationStatus(int s)

Description

Sets the authentication status.

Parameters

s – Value for authorization status.

getAuthorizationStatus()

Declaration

public int getAuthorizationStatus()

Description

Gets the authorization status.

Returns

Value for authorization status.

setAuthorizationStatus()

Declaration

public void setAuthorizationStatus(int s)

Description

Sets the authorization status.

Parameters

s – Value for authorization status.

getServiceStatus()

Declaration

public int getServiceStatus()

Description

Gets the service status.

Returns

The value of service status.

setServiceStatus()

Declaration

public void setServiceStatus(int s)

Description

Sets the service status.

Parameters

s – Value for service status.

getInvocationStatus()

Declaration

public int getInvocationStatus()

Description

Gets the invocation status.

Returns

The value for invocation status.

setInvocationStatus()

Declaration

public void setInvocationStatus(int s)

Description

Sets the invocation status.

Parameters

s – Value for invocation status.

getSize()

Declaration

public int getSize()

Description

Gets the size.

Returns

The value of size.

setSize()

Declaration

public void setSize(int s)

Description

Sets the size.

Parameters

s – The value of size.

getLatency()

Declaration

public int getLatency()

Description

Gets the default value for overall latency used for policy pipelines.

Returns

The value for overall latency.

setLatency()

Declaration

public void setLatency(int l)

Description

Sets the value for overall latency.

Parameters

l – The value for overall latency.

getServiceLatency()

Declaration

public int getServiceLatency()

Description

Gets the service only latency.

Returns

The value for service latency (in milliseconds).

See Also

getLatency()

setServiceLatency()

Declaration

public void setServiceLatency(int l)

Description

Sets the value for service latency (in milliseconds).

getFlowID()

Declaration

public java.lang.String getFlowID()

Description

Gets the flow ID.

Returns

The value for flow ID.

setFlowID()

Declaration

public void setFlowID(java.lang.String flowid)

Description

Sets the flow ID.

Parameters

flowid – A string representing the flow ID.

getMethod()

Declaration

public java.lang.String getMethod()

Description

Finds and returns the method on the service.

Returns

The method on the service.

setMethod()

Declaration

public void setMethod(java.lang.String inMethod)

Description

Sets the method.

Parameters

inMethod – The WSDL operation.

getCorrelationContext()

Declaration

public java.lang.String getCorrelationContext()

Description

Gets the correlation.

setCorrelationContext()

Declaration

public void setCorrelationContext(java.lang.String inCorrelationContext)

Description

Sets the correlation.

Parameters

inCorrelationContext – The correlation context string.

getMessageId()

Declaration

public java.lang.String getMessageId()

Description

Gets the message ID.

setMessageId()

Declaration

public void setMessageId(java.lang.String inMessageId)

Description

Sets the message ID.

Parameters

inMessageId – The message ID string.

getErrorMessage()

Declaration

public java.lang.String getErrorMessage()

Description

Gets the associated error message for the failure.

setErrorMessage()

Declaration

public void setErrorMessage(java.lang.String m)

Description

Sets the error message on failure.

Parameters

m – The error message string.

toString()

Declaration

public java.lang.String toString()

Description

String representation of this object.

Overrides

toString in class java.lang.Object

Fault

Declaration

public class Fault extends BaseException

Description

The Fault class contains all the information about a step execution failure.

Table 3-13 Methods of Fault

Method Description

getFaultNS()

Gets the fault namespace.

getFaultString()

Gets the fault string.

getFaultDetail()

Gets the fault detail.

getFaultActor()

Gets the fault actor.

getQualifiedFaultCode()

Gets the qualified fault code, for example, "Client.AuthenticationFailure."

getFaultCodeQualifier()

Gets the fault code qualifier.

getFaultCode()

Gets the fault code.

getFaultDetailsAsString()

Gets the fault detail as a string.


getFaultNS()

Declaration

public String getFaultNS()

Description

Gets the fault namespace.

Returns

The namespace as set or the default namespace.

getFaultString()

Declaration

public String getFaultString()

Description

Gets the fault string.

Returns

The fault string as set for the fault.

getFaultDetail()

Declaration

public Detail getFaultDetail()

Description

Gets the fault detail.

Returns

A detailed message for the cause of the fault.

getFaultActor()

Declaration

public String getFaultActor()

Description

Gets the fault actor.

Returns

The actor that experienced the fault.

getQualifiedFaultCode()

Declaration

public String getQualifiedFaultCode()

Description

Gets the qualified fault code, for example, "Client.AuthenticationFailure."

getFaultCodeQualifier()

Declaration

public String getFaultCodeQualifier()

Description

Gets the fault code qualifier.

getFaultCode()

Declaration

public String getFaultCode()

Description

Gets the fault code.

Returns

The fault code as set for this fault.

getFaultDetailsAsString()

Declaration

public String getFaultDetailsAsString()

Description

Gets the fault detail as a string.

Returns

A string representation of the fault detail.