public class AS2ReceiveXServletHandlerFileBasedConfig extends AbstractAS2ReceiveXServletHandler
AbstractAS2ReceiveXServletHandler with a file based
configuration.SERVLET_INIT_PARAM_AS2_SERVLET_CONFIG_FILENAME| Constructor and Description |
|---|
AS2ReceiveXServletHandlerFileBasedConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected AS2ServletSession |
createAS2Session(com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams)
Create the AS2 session to be used based on the provided configuration file.
|
protected File |
getConfigurationFile(com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams)
Get the AS2 configuration file to be used.
|
getReceiverModule, getSession, handeIncomingMessage, onRequest, onServletInitpublic AS2ReceiveXServletHandlerFileBasedConfig()
@OverrideOnDemand @Nonnull protected File getConfigurationFile(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) throws javax.servlet.ServletException
AbstractAS2ReceiveXServletHandler.SERVLET_INIT_PARAM_AS2_SERVLET_CONFIG_FILENAME. You may override
this method to use another way of retrieving the configuration file. File because the configuration file allows for
"%home%" parameter substitution which uses the directory of the
configuration file as the base directory.aInitParams - Servlet init parametersnull.javax.servlet.ServletException - If no or an invalid configuration file was provided.@Nonnull protected AS2ServletSession createAS2Session(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) throws com.helger.as2lib.exception.OpenAS2Exception, javax.servlet.ServletException
AbstractAS2ReceiveXServletHandlercreateAS2Session in class AbstractAS2ReceiveXServletHandlernull.com.helger.as2lib.exception.OpenAS2Exception - In case something goes wrong when initializing the sessionjavax.servlet.ServletException - In case an overriding methods wants to throw a different exceptionCopyright © 2015–2019 Philip Helger. All rights reserved.