public class JsseParameters extends java.lang.Object implements CamelContextAware
Constructor and Description |
---|
JsseParameters() |
Modifier and Type | Method and Description |
---|---|
CamelContext |
getCamelContext()
Get the
CamelContext |
protected java.lang.String |
parsePropertyValue(java.lang.String value)
Parses the value using the Camel Property Placeholder capabilities if
a context is provided.
|
protected java.util.List<java.lang.String> |
parsePropertyValues(java.util.List<java.lang.String> values)
Parses the values using the Camel Property Placeholder capabilities if
a context is provided.
|
protected java.io.InputStream |
resolveResource(java.lang.String resource)
Attempts to loads a resource using a number of different approaches.
|
void |
setCamelContext(CamelContext context)
Sets the optional
CamelContext used for integration with core capabilities
such as Camel Property Placeholders and ClassResolver . |
public CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
setCamelContext(CamelContext)
public void setCamelContext(CamelContext context)
CamelContext
used for integration with core capabilities
such as Camel Property Placeholders and ClassResolver
.setCamelContext
in interface CamelContextAware
context
- the context to useprotected java.lang.String parsePropertyValue(java.lang.String value) throws RuntimeCamelException
value
as is.value
- the string to replace property tokens inRuntimeCamelException
- if property placeholders were used and there was an error resolving themsetCamelContext(CamelContext)
protected java.util.List<java.lang.String> parsePropertyValues(java.util.List<java.lang.String> values) throws RuntimeCamelException
values
as is.values
- the list of strings to replace property tokens inRuntimeCamelException
- if property placeholders were used and there was an error resolving themparsePropertyValue(String)
protected java.io.InputStream resolveResource(java.lang.String resource) throws java.io.IOException
ClassResolver
if a context is available in that order. An exception is thrown if the resource
cannot be resolved to readable input stream using any of the above methods.resource
- the resource locationjava.io.IOException
- if the resource cannot be resolved using any of the above methodssetCamelContext(CamelContext)
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.