Package org.apache.camel.support.jsse
Class JsseParameters
java.lang.Object
org.apache.camel.support.jsse.JsseParameters
- All Implemented Interfaces:
CamelContextAware,HasCamelContext
- Direct Known Subclasses:
BaseSSLContextParameters,FilterParameters,KeyManagersParameters,KeyStoreParameters,SecureRandomParameters,TrustManagersParameters
Base class that provides optional integration with core Camel capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the camel context.protected StringparsePropertyValue(String value) Parses the value using the Camel Property Placeholder capabilities if a context is provided.parsePropertyValues(List<String> values) Parses the values using the Camel Property Placeholder capabilities if a context is provided.protected InputStreamresolveResource(String resource) Attempts to load a resource using a number of different approaches.voidsetCamelContext(CamelContext context) Sets the optionalCamelContextused for integration with core capabilities such as Camel Property Placeholders andClassResolver.
-
Constructor Details
-
JsseParameters
public JsseParameters()
-
-
Method Details
-
getCamelContext
Description copied from interface:HasCamelContextReturns the camel context.- Specified by:
getCamelContextin interfaceHasCamelContext- Returns:
- the camel context.
- See Also:
-
setCamelContext
Sets the optionalCamelContextused for integration with core capabilities such as Camel Property Placeholders andClassResolver.- Specified by:
setCamelContextin interfaceCamelContextAware- Parameters:
context- the context to use
-
parsePropertyValue
Parses the value using the Camel Property Placeholder capabilities if a context is provided. Otherwise returnsvalueas is.- Parameters:
value- the string to replace property tokens in- Returns:
- the value
- Throws:
RuntimeCamelException- if property placeholders were used and there was an error resolving them- See Also:
-
parsePropertyValues
Parses the values using the Camel Property Placeholder capabilities if a context is provided. Otherwise returnsvaluesas is.- Parameters:
values- the list of strings to replace property tokens in- Returns:
- the list of strings
- Throws:
RuntimeCamelException- if property placeholders were used and there was an error resolving them- See Also:
-
resolveResource
Attempts to load a resource using a number of different approaches. The loading of the resource, is attempted by treating the resource as a file path, a class path resource, a URL, and using the Camel Context'sResourceLoaderif 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.- Parameters:
resource- the resource location- Returns:
- the input stream for the resource
- Throws:
IOException- if the resource cannot be resolved using any of the above methods
-