Search in sources :

Example 21 with CollectionStringBuffer

use of org.apache.camel.util.CollectionStringBuffer in project camel by apache.

the class XStreamDataFormat method setPermissions.

/**
     * To add permission for the given pojo classes.
     * @param type the pojo class(es) xstream should use as allowed permission
     * @see #setPermissions(String)
     */
public void setPermissions(Class<?>... type) {
    CollectionStringBuffer csb = new CollectionStringBuffer(",");
    for (Class<?> clazz : type) {
        csb.append("+");
        csb.append(clazz.getName());
    }
    setPermissions(csb.toString());
}
Also used : CollectionStringBuffer(org.apache.camel.util.CollectionStringBuffer)

Aggregations

CollectionStringBuffer (org.apache.camel.util.CollectionStringBuffer)21 HashMap (java.util.HashMap)5 Map (java.util.Map)5 IOException (java.io.IOException)4 LinkedHashMap (java.util.LinkedHashMap)4 TreeMap (java.util.TreeMap)4 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)4 MalformedObjectNameException (javax.management.MalformedObjectNameException)4 FailedToStartRouteException (org.apache.camel.FailedToStartRouteException)4 NoFactoryAvailableException (org.apache.camel.NoFactoryAvailableException)4 NoSuchEndpointException (org.apache.camel.NoSuchEndpointException)4 ResolveEndpointFailedException (org.apache.camel.ResolveEndpointFailedException)4 RuntimeCamelException (org.apache.camel.RuntimeCamelException)4 VetoCamelContextStartException (org.apache.camel.VetoCamelContextStartException)4 LoadPropertiesException (org.apache.camel.util.LoadPropertiesException)4 RouteDefinition (org.apache.camel.model.RouteDefinition)2 BufferedReader (java.io.BufferedReader)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStreamReader (java.io.InputStreamReader)1 URI (java.net.URI)1