Class DivertConfiguration

    • Field Detail

      • NAME

        public static String NAME
      • ROUTING_NAME

        public static String ROUTING_NAME
      • ADDRESS

        public static String ADDRESS
      • FORWARDING_ADDRESS

        public static String FORWARDING_ADDRESS
      • EXCLUSIVE

        public static String EXCLUSIVE
      • FILTER_STRING

        public static String FILTER_STRING
      • TRANSFORMER_CONFIGURATION

        public static String TRANSFORMER_CONFIGURATION
      • ROUTING_TYPE

        public static String ROUTING_TYPE
    • Constructor Detail

      • DivertConfiguration

        public DivertConfiguration()
    • Method Detail

      • set

        public DivertConfiguration set​(String key,
                                       String value)
        Set the value of a parameter based on its "key" String. Valid key names and corresponding static final are:

        The String-based values will be converted to the proper value types based on the underlying property. For example, if you pass the value "TRUE" for the key "exclusive" the String "TRUE" will be converted to the Boolean true.

        Parameters:
        key - the key to set to the value
        value - the value to set for the key
        Returns:
        this DivertConfiguration
      • getName

        public String getName()
      • getRoutingName

        public String getRoutingName()
      • getAddress

        public String getAddress()
      • getForwardingAddress

        public String getForwardingAddress()
      • isExclusive

        public boolean isExclusive()
      • getFilterString

        public String getFilterString()
      • getRoutingType

        public org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType getRoutingType()
      • setRoutingName

        public DivertConfiguration setRoutingName​(String routingName)
        Parameters:
        routingName - the routingName to set
      • setForwardingAddress

        public DivertConfiguration setForwardingAddress​(String forwardingAddress)
        Parameters:
        forwardingAddress - the forwardingAddress to set
      • setExclusive

        public DivertConfiguration setExclusive​(boolean exclusive)
        Parameters:
        exclusive - the exclusive to set
      • setFilterString

        public DivertConfiguration setFilterString​(String filterString)
        Parameters:
        filterString - the filterString to set
      • setTransformerConfiguration

        public DivertConfiguration setTransformerConfiguration​(TransformerConfiguration transformerConfiguration)
        Parameters:
        transformerConfiguration - the transformerConfiguration to set
      • setRoutingType

        public DivertConfiguration setRoutingType​(org.apache.activemq.artemis.core.server.ComponentConfigurationRoutingType routingType)
        Parameters:
        routingType - the routingType to set
      • toJSON

        public String toJSON()
        This method returns a JSON-formatted String representation of this DivertConfiguration. It is a simple collection of key/value pairs. The keys used are referenced in set(String, String).
        Returns:
        a JSON-formatted String representation of this DivertConfiguration
      • fromJSON

        public static DivertConfiguration fromJSON​(String jsonString)
        This method returns a DivertConfiguration created from the JSON-formatted input String. The input should be a simple object of key/value pairs. Valid keys are referenced in set(String, String).
        Parameters:
        jsonString - json string
        Returns:
        the DivertConfiguration created from the JSON-formatted input String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object