public interface SoaAgent
Modifier and Type | Method and Description |
---|---|
void |
close(MessageContext context)
Gives the agent the opportunity to release any resources allocated
during processing of a message context.
|
ExchangeStatus |
handleFaultMessage(MessageContext context)
Processes the FAULT message of an operation.
|
ExchangeStatus |
handleInMessage(MessageContext context)
Processes the IN message of an operation.
|
ExchangeStatus |
handleOutMessage(MessageContext context)
Processes the OUT message of an operation.
|
ExchangeStatus |
handleResponseMessage(MessageContext context)
Processes the message returned by the service implementation for an
operation.
|
MessageContext |
open()
Returns a new MessageContext to be used for subsequent calls to the
agent.
|
MessageContext open()
ExchangeStatus handleInMessage(MessageContext context) throws AgentException
context
- MessageContext holding the message to be processed and
any additional properties that are relevant. At
completion, the message may be altered for delivery to
the service implementation. The
message may also be changed for immediate delivery back
to the consumer without forwarding to the service
implementation. The message may be replaced with a
normal OUT message or a FAULT message. The returned
ExchangeStatus will indicate to the client what the
agent has done and recommends to do next.AgentException
- Thrown if the agent encountered an internal error
and could not complete processing.ExchangeStatus handleOutMessage(MessageContext context) throws AgentException
context
- MessageContext holding the message to be processed and
any additional properties that are relevant. At
completion, the message may be altered for delivery to
the client. The message may be replaced with a
FAULT message. The returned ExchangeStatus will indicate
to the client what the agent has done and recommends to do
next.AgentException
- Thrown if the agent encountered an internal error
and could not complete processing.ExchangeStatus handleResponseMessage(MessageContext context) throws AgentException
context
- MessageContext holding the message to be processed and
any additional properties that are relevant. At
completion, the message may be altered for delivery to
the client. The message may be replaced with a
FAULT message. The returned ExchangeStatus will indicate
to the client what the agent has done and recommends to do
next.AgentException
- Thrown if the agent encountered an internal error
and could not complete processing.ExchangeStatus handleFaultMessage(MessageContext context) throws AgentException
context
- MessageContext holding the message to be processed and
any additional properties that are relevant. At
completion, the message may be altered for delivery to
the client. The returned ExchangeStatus will recommend
to the client what to do next.AgentException
- Thrown if the agent encountered an internal error
and could not complete processing.void close(MessageContext context)
context
- MessageContext whose resources are to be released.?? 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.