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