public class JsseParameters extends Object implements CamelContextAware
Constructor and Description |
---|
JsseParameters() |
Modifier and Type | Method and Description |
---|---|
CamelContext |
getCamelContext()
Get the
CamelContext |
protected String |
parsePropertyValue(String value)
Parses the value using the Camel Property Placeholder capabilities if a context is provided.
|
protected List<String> |
parsePropertyValues(List<String> values)
Parses the values using the Camel Property Placeholder capabilities if a context is provided.
|
protected InputStream |
resolveResource(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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
trySetCamelContext
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 String parsePropertyValue(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 List<String> parsePropertyValues(List<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 InputStream resolveResource(String resource) throws 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 locationIOException
- if the resource cannot be resolved using any of the above methodssetCamelContext(CamelContext)
Apache Camel