CIB seven Connector Reference

CIB seven Connect provides a simple API for connecting HTTP services and other things. It aims at two usage scenarios: usage in a generic system such as the CIB seven process engine and standalone usage via API.

Connectors

CIB seven Connect provides a HTTP and a SOAP HTTP connector. If you want to add an own connector to Connect please have a look at the extending Connect section. This section also describes the usage of a ConnectorConfigurator to configure the connector instances.

During the request invocation of a connector an interceptor chain is passed. The user can add own interceptors to this chain. The interceptor is called for every request of this connector.

connector.addRequestInterceptor(interceptor).createRequest();

Maven Coordinates

Connect can be used in any Java-based application by adding the following maven dependency to your pom.xml file:

CIB seven BOM

If you use other CIB seven projects please import the CIB seven BOM to ensure correct versions for every CIB seven project.

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.cibseven.connect</groupId>
      <artifactId>cibseven-connect-bom</artifactId>
      <scope>import</scope>
      <type>pom</type>
      <version>${version.cibseven}</version>
    </dependency>
  </dependencies>
</dependencyManagement>
<dependencies>
  <dependency>
    <groupId>org.cibseven.connect</groupId>
    <artifactId>cibseven-connect-core</artifactId>
  </dependency>

  <dependency>
    <groupId>org.cibseven.connect</groupId>
    <artifactId>cibseven-connect-connectors-all</artifactId>
  </dependency>
</dependencies>

CIB seven Connect is published to maven central.

Process engine plugin

If you are using Connect in the CIB seven process engine, you also need the cibseven-engine-plugin-connect dependency. For more information, refer to the Connectors guide.

Logging

CIB seven Connect uses cibseven-commons-logging which itself uses SLF4J as a logging backend. To enable logging a SLF4J implementation has to be part of your classpath. For example slf4j-simple, log4j12 or logback-classic.

To also enable logging for the Apache HTTP client you can use a SLF4J bridge like jcl-over-slf4j as the Apache HTTP Client doesn’t support SLF4J.

On this Page: