Class CamelMapping

java.lang.Object
io.vertx.camel.CamelMapping
Direct Known Subclasses:
InboundMapping, OutboundMapping

public class CamelMapping extends Object
Parent class for mapping between Vert.x event bus and Camel endpoints.
Author:
Clement Escoffier
  • Field Details

    • DEFAULT_HEADERS_COPY

      public static final boolean DEFAULT_HEADERS_COPY
      See Also:
  • Constructor Details

    • CamelMapping

      public CamelMapping()
  • Method Details

    • getUri

      public String getUri()
      Returns:
      the Camel endpoint URI.
    • setUri

      public CamelMapping setUri(String uri)
      Sets the Camel endpoint URI.
      Parameters:
      uri - the uri
      Returns:
      the current CamelMapping
    • setEndpoint

      public CamelMapping setEndpoint(org.apache.camel.Endpoint endpoint)
      Sets the Camel endpoint. If used, setUri(String) does not need to be called.
      Parameters:
      endpoint - the endpoint
      Returns:
      the current CamelMapping
    • isHeadersCopy

      public boolean isHeadersCopy()
      Returns:
      whether or not the headers of the input message are copied in the output message.
    • setHeadersCopy

      public CamelMapping setHeadersCopy(boolean headersCopy)
      Sets whether or not the headers of the input message are copied in the output message.
      Parameters:
      headersCopy - true to copy the headers
      Returns:
      the current CamelMapping
    • getAddress

      public String getAddress()
      Returns:
      the event bus address.
    • setAddress

      public CamelMapping setAddress(String address)
      Sets the event bus address.
      Parameters:
      address - the address
      Returns:
      the current CamelMapping