ssogabe authored on 27 Dec 2013
src Make more useful Idempotent 3 years ago
.gitignore Endpoint should extends DefaultPollingEndpoint to poll a mantis 3 years ago
README.md fixed invalid notaion 3 years ago
pom.xml failed to display Javadoc 3 years ago
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&amppassword=guest&ampsplitIssues=true&ampinitialDelay=200&ampdelay=3000&ampprojectId=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