Interface WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
WordpressEndpointBuilderFactory.WordpressEndpointBuilder
- Enclosing interface:
- WordpressEndpointBuilderFactory
public static interface WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilderBuilder for endpoint consumers for the Wordpress component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default WordpressEndpointBuilderFactory.AdvancedWordpressEndpointConsumerBuilderadvanced()default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderapiVersion(String apiVersion)The Wordpress REST API version.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderbridgeErrorHandler(boolean bridgeErrorHandler)Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderbridgeErrorHandler(String bridgeErrorHandler)Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuildercriteria(String key, Object value)The criteria to use with complex searches.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuildercriteria(Map values)The criteria to use with complex searches.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderforce(boolean force)Whether to bypass trash and force deletion.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderforce(String force)Whether to bypass trash and force deletion.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderid(Integer id)The entity ID.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderid(String id)The entity ID.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderpassword(String password)Password from authorized user.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuildersearchCriteria(Object searchCriteria)Search criteria.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuildersearchCriteria(String searchCriteria)Search criteria.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderurl(String url)The Wordpress API URL from your site, e.g.default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilderuser(String user)Authorized user to perform writing operations.
-
-
-
Method Detail
-
advanced
default WordpressEndpointBuilderFactory.AdvancedWordpressEndpointConsumerBuilder advanced()
-
apiVersion
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder apiVersion(String apiVersion)
The Wordpress REST API version. The option is a: <code>java.lang.String</code> type. Default: 2 Group: common- Parameters:
apiVersion- the value to set- Returns:
- the dsl builder
-
criteria
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder criteria(String key, Object value)
The criteria to use with complex searches. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the criteria(String, Object) method to add a value (call the method multiple times to set more values). Group: common- Parameters:
key- the option keyvalue- the option value- Returns:
- the dsl builder
-
criteria
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder criteria(Map values)
The criteria to use with complex searches. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the criteria(String, Object) method to add a value (call the method multiple times to set more values). Group: common- Parameters:
values- the values- Returns:
- the dsl builder
-
force
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder force(boolean force)
Whether to bypass trash and force deletion. The option is a: <code>boolean</code> type. Default: false Group: common- Parameters:
force- the value to set- Returns:
- the dsl builder
-
force
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder force(String force)
Whether to bypass trash and force deletion. The option will be converted to a <code>boolean</code> type. Default: false Group: common- Parameters:
force- the value to set- Returns:
- the dsl builder
-
id
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder id(Integer id)
The entity ID. Should be passed when the operation performed requires a specific entity, e.g. deleting a post. The option is a: <code>java.lang.Integer</code> type. Group: common- Parameters:
id- the value to set- Returns:
- the dsl builder
-
id
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder id(String id)
The entity ID. Should be passed when the operation performed requires a specific entity, e.g. deleting a post. The option will be converted to a <code>java.lang.Integer</code> type. Group: common- Parameters:
id- the value to set- Returns:
- the dsl builder
-
password
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder password(String password)
Password from authorized user. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
password- the value to set- Returns:
- the dsl builder
-
searchCriteria
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder searchCriteria(Object searchCriteria)
Search criteria. The option is a: <code>org.apache.camel.component.wordpress.api.model.SearchCriteria</code> type. Group: common- Parameters:
searchCriteria- the value to set- Returns:
- the dsl builder
-
searchCriteria
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder searchCriteria(String searchCriteria)
Search criteria. The option will be converted to a <code>org.apache.camel.component.wordpress.api.model.SearchCriteria</code> type. Group: common- Parameters:
searchCriteria- the value to set- Returns:
- the dsl builder
-
url
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder url(String url)
The Wordpress API URL from your site, e.g. http://myblog.com/wp-json/. The option is a: <code>java.lang.String</code> type. Required: true Group: common- Parameters:
url- the value to set- Returns:
- the dsl builder
-
user
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder user(String user)
Authorized user to perform writing operations. The option is a: <code>java.lang.String</code> type. Group: common- Parameters:
user- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default WordpressEndpointBuilderFactory.WordpressEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
-