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 ServiceCallDefinitionend()ProcessorDefinition<?>endParent()ServiceCallExpressionConfigurationexpression(org.apache.camel.Expression expression)ServiceCallExpressionConfigurationexpressionType(ExpressionDefinition expressionType)org.apache.camel.ExpressiongetExpression()ExpressionDefinitiongetExpressionType()StringgetHostHeader()StringgetPortHeader()ServiceCallExpressionConfigurationhostHeader(String hostHeader)The header that holds the service host information, default ServiceCallConstants.SERVICE_HOSTorg.apache.camel.ExpressionnewInstance(org.apache.camel.CamelContext camelContext)ServiceCallExpressionConfigurationportHeader(String portHeader)The header that holds the service port information, default ServiceCallConstants.SERVICE_PORTServiceCallServiceChooserConfigurationproperty(String key, String value)Adds a custom property to use.voidsetExpression(org.apache.camel.Expression expression)voidsetExpressionType(ExpressionDefinition expressionType)voidsetHostHeader(String hostHeader)The header that holds the service host information, default ServiceCallConstants.SERVICE_HOSTvoidsetPortHeader(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:ServiceCallConfigurationAdds 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:
propertyin 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)
-
-