@Metadata(label="routing,cloud") public class ServiceCallExpressionConfiguration extends IdentifiedType implements ServiceExpressionFactory
Constructor and Description |
---|
ServiceCallExpressionConfiguration() |
ServiceCallExpressionConfiguration(ServiceCallDefinition parent,
String factoryKey) |
Modifier and Type | Method and Description |
---|---|
ServiceCallDefinition |
end() |
ProcessorDefinition<?> |
endParent() |
ServiceCallExpressionConfiguration |
expression(Expression expression) |
ServiceCallExpressionConfiguration |
expressionType(ExpressionDefinition expressionType) |
Expression |
getExpression() |
ExpressionDefinition |
getExpressionType() |
String |
getHostHeader() |
String |
getPortHeader() |
List<PropertyDefinition> |
getProperties() |
protected Map<String,String> |
getPropertiesAsMap(CamelContext camelContext) |
ServiceCallExpressionConfiguration |
hostHeader(String hostHeader)
The header that holds the service host information, default ServiceCallConstants.SERVICE_HOST
|
Expression |
newInstance(CamelContext camelContext)
Creates an instance of a service.
|
ServiceCallExpressionConfiguration |
portHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT
|
protected void |
postProcessFactoryParameters(CamelContext camelContext,
Map<String,Object> parameters) |
ServiceCallExpressionConfiguration |
property(String key,
String value)
Adds a custom property to use.
|
void |
setExpression(Expression expression) |
void |
setExpressionType(ExpressionDefinition expressionType) |
void |
setHostHeader(String hostHeader)
The header that holds the service host information, default ServiceCallConstants.SERVICE_HOST
|
void |
setPortHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT
|
void |
setProperties(List<PropertyDefinition> properties)
Set client properties to use.
|
getId, setId
public ServiceCallExpressionConfiguration()
public ServiceCallExpressionConfiguration(ServiceCallDefinition parent, String factoryKey)
public ServiceCallDefinition end()
public ProcessorDefinition<?> endParent()
public List<PropertyDefinition> getProperties()
public void setProperties(List<PropertyDefinition> properties)
public ServiceCallExpressionConfiguration property(String key, String value)
protected Map<String,String> getPropertiesAsMap(CamelContext camelContext) throws Exception
Exception
public String getHostHeader()
public void setHostHeader(String hostHeader)
public String getPortHeader()
public void setPortHeader(String portHeader)
public ExpressionDefinition getExpressionType()
public void setExpressionType(ExpressionDefinition expressionType)
public Expression getExpression()
public void setExpression(Expression expression)
public ServiceCallExpressionConfiguration hostHeader(String hostHeader)
public ServiceCallExpressionConfiguration portHeader(String portHeader)
public ServiceCallExpressionConfiguration expressionType(ExpressionDefinition expressionType)
public ServiceCallExpressionConfiguration expression(Expression expression)
public Expression newInstance(CamelContext camelContext) throws Exception
ServiceFactory
newInstance
in interface ServiceFactory<Expression>
Exception
protected void postProcessFactoryParameters(CamelContext camelContext, Map<String,Object> parameters) throws Exception
Exception
Apache Camel