Newer
Older
camel-mantis / README.md

MantisBT Component

The MantisBT component is used for polling MantisBT issues.

Maven users will need to add the following depdendency to their pom.xml for this component.

<dependency>
    <groupId>jp.co.nttcom.eai</groupId>
    <artifactId>camel-mantis</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

Note: The component currently only supports polling (consuming) issues.

URI format

Mantis Ver. 1.1.X

mantis11:mantisUrl

Mantis Ver. 1.2.x

mantis12:mantisUrl

You can append query options to the URI in the following format, ?option=value&option=value&...

Options

Common

  • username
  • password
  • projectId
  • idempotentRepository
  • maxPerPoll
    • default is 100

Consumer

  • initialDelay
  • delay
  • splitIssues
    • default is true

For example,

  from("mantis12:http://www.mantis.org/bugs?username=guest&password=guest&splitIssues=true&initialDelay=200&delay=3000&projectId=1").
  to("mock:result");

Exchange data types

Camel initializes the In body on the Exchange with a MantisIssue class. Depending on the value of the splitIssues flag, Camel returns either a MantisIssue or a List of MantisIssue.

See Also