public class RestConfiguration extends Object
RestConsumerFactory
for Camel components to support
the Camel rest
DSL.Modifier and Type | Class and Description |
---|---|
static class |
RestConfiguration.RestBindingMode |
static class |
RestConfiguration.RestHostNameResolver |
Constructor and Description |
---|
RestConfiguration() |
Modifier and Type | Method and Description |
---|---|
RestConfiguration.RestBindingMode |
getBindingMode()
Gets the binding mode used by the REST consumer
|
String |
getComponent()
Gets the name of the Camel component to use as the REST consumer
|
Map<String,Object> |
getComponentProperties()
Gets additional options on component level
|
Map<String,Object> |
getConsumerProperties()
Gets additional options on consumer level
|
String |
getContextPath()
Gets the configured context-path
|
Map<String,Object> |
getDataFormatProperties()
Gets additional options on data format level
|
Map<String,Object> |
getEndpointProperties()
Gets additional options on endpoint level
|
String |
getHost()
Gets the hostname to use by the REST consumer
|
String |
getJsonDataFormat()
Gets the name of the json data format.
|
int |
getPort()
Gets the port to use by the REST consumer
|
RestConfiguration.RestHostNameResolver |
getRestHostNameResolver()
Gets the resolver to use for resolving hostname
|
String |
getScheme()
Gets the scheme to use by the REST consumer
|
String |
getXmlDataFormat()
Gets the name of the xml data format.
|
void |
setBindingMode(RestConfiguration.RestBindingMode bindingMode)
Sets the binding mode to be used by the REST consumer
|
void |
setBindingMode(String bindingMode)
Sets the binding mode to be used by the REST consumer
|
void |
setComponent(String componentName)
Sets the name of the Camel component to use as the REST consumer
|
void |
setComponentProperties(Map<String,Object> componentProperties)
Sets additional options on component level
|
void |
setConsumerProperties(Map<String,Object> consumerProperties)
Sets additional options on consumer level
|
void |
setContextPath(String contextPath)
Sets a leading context-path the REST services will be using.
|
void |
setDataFormatProperties(Map<String,Object> dataFormatProperties)
Sets additional options on data format level
|
void |
setEndpointProperties(Map<String,Object> endpointProperties)
Sets additional options on endpoint level
|
void |
setHost(String host)
Sets the hostname to use by the REST consumer
|
void |
setJsonDataFormat(String name)
Sets a custom json data format to be used
|
void |
setPort(int port)
Sets the port to use by the REST consumer
|
void |
setRestHostNameResolver(RestConfiguration.RestHostNameResolver restHostNameResolver)
Sets the resolver to use for resolving hostname
|
void |
setRestHostNameResolver(String restHostNameResolver)
Sets the resolver to use for resolving hostname
|
void |
setScheme(String scheme)
Sets the scheme to use by the REST consumer
|
void |
setXmlDataFormat(String name)
Sets a custom xml data format to be used
|
public RestConfiguration()
public String getComponent()
Registry
to find suitable implementationpublic void setComponent(String componentName)
componentName
- the name of the component (such as restlet, spark-rest, etc.)public String getHost()
public void setHost(String host)
host
- the hostnamepublic String getScheme()
public void setScheme(String scheme)
scheme
- the schemepublic int getPort()
public void setPort(int port)
port
- the port numberpublic String getContextPath()
public void setContextPath(String contextPath)
contextPath
- the context pathpublic RestConfiguration.RestHostNameResolver getRestHostNameResolver()
public void setRestHostNameResolver(RestConfiguration.RestHostNameResolver restHostNameResolver)
restHostNameResolver
- the resolverpublic void setRestHostNameResolver(String restHostNameResolver)
restHostNameResolver
- the resolverpublic RestConfiguration.RestBindingMode getBindingMode()
public void setBindingMode(RestConfiguration.RestBindingMode bindingMode)
bindingMode
- the binding modepublic void setBindingMode(String bindingMode)
bindingMode
- the binding modepublic String getJsonDataFormat()
public void setJsonDataFormat(String name)
name
- name of the data formatpublic String getXmlDataFormat()
public void setXmlDataFormat(String name)
name
- name of the data formatpublic Map<String,Object> getComponentProperties()
public void setComponentProperties(Map<String,Object> componentProperties)
componentProperties
- the optionspublic Map<String,Object> getEndpointProperties()
public void setEndpointProperties(Map<String,Object> endpointProperties)
endpointProperties
- the optionspublic Map<String,Object> getConsumerProperties()
public void setConsumerProperties(Map<String,Object> consumerProperties)
consumerProperties
- the optionspublic Map<String,Object> getDataFormatProperties()
public void setDataFormatProperties(Map<String,Object> dataFormatProperties)
dataFormatProperties
- the optionsApache Camel