Package org.apache.camel.model.cloud
Class ServiceCallExpressionConfiguration
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.model.cloud.ServiceCallConfiguration
-
- org.apache.camel.model.cloud.ServiceCallExpressionConfiguration
-
- All Implemented Interfaces:
org.apache.camel.cloud.ServiceExpressionFactory
,org.apache.camel.cloud.ServiceFactory<org.apache.camel.Expression>
@Metadata(label="routing,cloud") @Configurer(extended=true) public class ServiceCallExpressionConfiguration extends ServiceCallConfiguration implements org.apache.camel.cloud.ServiceExpressionFactory
-
-
Field Summary
-
Fields inherited from class org.apache.camel.model.cloud.ServiceCallConfiguration
properties
-
-
Constructor Summary
Constructors Constructor Description ServiceCallExpressionConfiguration()
ServiceCallExpressionConfiguration(ServiceCallDefinition parent, String factoryKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
ServiceCallExpressionConfiguration
hostHeader(String hostHeader)
The header that holds the service host information, default ServiceCallConstants.SERVICE_HOSTorg.apache.camel.Expression
newInstance(org.apache.camel.CamelContext camelContext)
ServiceCallExpressionConfiguration
portHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORTServiceCallServiceChooserConfiguration
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_HOSTvoid
setPortHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT-
Methods inherited from class org.apache.camel.model.cloud.ServiceCallConfiguration
getConfiguredOptions, getProperties, getPropertiesAsMap, postProcessFactoryParameters, setProperties
-
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
-
-
-
Constructor Detail
-
ServiceCallExpressionConfiguration
public ServiceCallExpressionConfiguration()
-
ServiceCallExpressionConfiguration
public ServiceCallExpressionConfiguration(ServiceCallDefinition parent, String factoryKey)
-
-
Method Detail
-
end
public ServiceCallDefinition end()
-
endParent
public ProcessorDefinition<?> endParent()
-
property
public ServiceCallServiceChooserConfiguration property(String key, String value)
Description copied from class:ServiceCallConfiguration
Adds a custom property to use. These properties are specific to what service call implementation are in use. For example if using a different one, then the client properties are defined according to the specific service in use.- Overrides:
property
in classServiceCallConfiguration
-
getHostHeader
public String getHostHeader()
-
setHostHeader
public void setHostHeader(String hostHeader)
The header that holds the service host information, default ServiceCallConstants.SERVICE_HOST
-
getPortHeader
public String getPortHeader()
-
setPortHeader
public void setPortHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT
-
getExpressionType
public ExpressionDefinition getExpressionType()
-
setExpressionType
public void setExpressionType(ExpressionDefinition expressionType)
-
getExpression
public org.apache.camel.Expression getExpression()
-
setExpression
public void setExpression(org.apache.camel.Expression expression)
-
hostHeader
public ServiceCallExpressionConfiguration hostHeader(String hostHeader)
The header that holds the service host information, default ServiceCallConstants.SERVICE_HOST
-
portHeader
public ServiceCallExpressionConfiguration portHeader(String portHeader)
The header that holds the service port information, default ServiceCallConstants.SERVICE_PORT
-
expressionType
public ServiceCallExpressionConfiguration expressionType(ExpressionDefinition expressionType)
-
expression
public ServiceCallExpressionConfiguration expression(org.apache.camel.Expression expression)
-
-