org.apache.camel.component.jmx
Class JMXUriBuilder
java.lang.Object
org.apache.camel.component.jmx.JMXUriBuilder
public class JMXUriBuilder
- extends Object
Builder for JMX endpoint URI's. Saves you from having to do the string concat'ing
and messing up the param names
JMXUriBuilder
public JMXUriBuilder()
JMXUriBuilder
public JMXUriBuilder(String aServerName)
withFormat
public JMXUriBuilder withFormat(String aFormat)
withUser
public JMXUriBuilder withUser(String aFormat)
withPassword
public JMXUriBuilder withPassword(String aFormat)
withObjectDomain
public JMXUriBuilder withObjectDomain(String aFormat)
withObjectName
public JMXUriBuilder withObjectName(String aFormat)
withNotificationFilter
public JMXUriBuilder withNotificationFilter(String aFilter)
withHandback
public JMXUriBuilder withHandback(String aHandback)
withObjectProperties
public JMXUriBuilder withObjectProperties(Map<String,String> aPropertiesSansKeyPrefix)
- Converts all of the values to params with the "key." prefix so the
component will pick up on them and set them on the endpoint. Alternatively,
you can pass in a reference to a Hashtable using the version of this
method that takes a single string.
withObjectPropertiesReference
public JMXUriBuilder withObjectPropertiesReference(String aReferenceToHashtable)
- Your value should start with a hash mark since it's a reference to a value.
This method will add the hash mark if it's not present.
addProperty
protected void addProperty(String aName,
String aValue)
getServerName
public String getServerName()
setServerName
public void setServerName(String aServerName)
withServerName
public JMXUriBuilder withServerName(String aServerName)
toString
public String toString()
- Overrides:
toString in class Object
Apache CAMEL