public class Invoker extends Object
Modifier | Constructor and Description |
---|---|
|
Invoker(ServiceDomain domain,
QName serviceName)
Protected invoker.
|
protected |
Invoker(ServiceDomain domain,
String serviceName)
Protected invoker.
|
Modifier and Type | Method and Description |
---|---|
Invoker |
attachment(String name,
DataSource attachment)
Adds an attachment for created Messages.
|
Exchange |
createExchange(ExchangeHandler handler)
Create an
Exchange instance for the target service operation. |
Invoker |
expectedFaultType(QName expectedFaultType)
Set the expected fault type for the exchange contract.
|
Invoker |
expectedOutputType(QName expectedOutputType)
Set the output type for the exchange contract.
|
String |
getOperationName()
Get the target Operation Name.
|
QName |
getServiceName()
Get the target Service Name.
|
Invoker |
inputType(QName inputType)
Set the input type for the exchange contract.
|
Invoker |
operation(ServiceOperation serviceOperation)
Set the target operation.
|
Invoker |
operation(String operationName)
Set the target operation name.
|
Invoker |
property(String name,
Object value)
Sets a property at
Scope.MESSAGE . |
Invoker |
property(String name,
Object value,
Scope scope)
Sets a property at the specified scope.
|
Invoker |
responseHandler(ExchangeHandler handler)
Set the response handler.
|
void |
sendInOnly(Object messagePayload)
Send an IN_ONLY message to the target Service.
|
Message |
sendInOut(Object messagePayload)
Send an IN_OUT message to the target Service.
|
Invoker |
timeout(long timeoutMillis)
Set the timeout for in-out invocations.
|
protected Invoker(ServiceDomain domain, String serviceName)
domain
- The ServiceDomain.serviceName
- The Service name.public Invoker(ServiceDomain domain, QName serviceName)
domain
- The ServiceDomain.serviceName
- The Service name.public QName getServiceName()
public String getOperationName()
public Invoker operation(String operationName)
operationName
- The operation name.public Invoker operation(ServiceOperation serviceOperation)
serviceOperation
- The target operation.public Invoker responseHandler(ExchangeHandler handler)
handler
- The response handler.public Invoker timeout(long timeoutMillis)
timeoutMillis
- The timeout time in milliseconds.public Invoker inputType(QName inputType)
ExchangeContract is set
on this Invoker instance.inputType
- The input type for the exchange contract.public Invoker expectedOutputType(QName expectedOutputType)
ExchangeContract is set
on this Invoker instance.expectedOutputType
- The output type for the exchange contract.public Invoker expectedFaultType(QName expectedFaultType)
ExchangeContract is set
on this Invoker instance.expectedFaultType
- The expected fault type for the exchange contract.public Invoker property(String name, Object value)
Scope.MESSAGE
.name
- the namevalue
- the valuepublic Invoker property(String name, Object value, Scope scope)
name
- the namevalue
- the valuescope
- the scopepublic Invoker attachment(String name, DataSource attachment)
name
- the name of the attachmentattachment
- the attachmentpublic void sendInOnly(Object messagePayload) throws InvocationFaultException
messagePayload
- The message payload.InvocationFaultException
- if the message exchange produces a faultpublic Message sendInOut(Object messagePayload) throws InvocationFaultException
messagePayload
- The message payload.InvocationFaultException
- if the message exchange produces a faultpublic Exchange createExchange(ExchangeHandler handler)
Exchange
instance for the target service operation.handler
- The ExchangeHandler to be used on the Exchange.Copyright © 2013–2019 JBoss by Red Hat. All rights reserved.