public abstract class AbstractAS2ReceiveXServletHandler extends Object implements com.helger.xservlet.handler.IXServletHandler
AS2ReceiveServlet.| Modifier and Type | Field and Description |
|---|---|
static String |
SERVLET_INIT_PARAM_AS2_SERVLET_CONFIG_FILENAME
The name of the Servlet's init-parameter from which the absolute path to the
configuration file is read.
|
| Constructor and Description |
|---|
AbstractAS2ReceiveXServletHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract com.helger.as2lib.session.AS2Session |
createAS2Session(com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams)
Create the AS2 session to be used based on the provided configuration file.
|
protected com.helger.as2lib.processor.receiver.AS2ReceiverModule |
getReceiverModule() |
protected com.helger.as2lib.session.AS2Session |
getSession() |
protected void |
handeIncomingMessage(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.web.scope.IRequestWebScope aRequestScope,
byte[] aMsgData,
com.helger.as2lib.message.AS2Message aMsg,
AS2OutputStreamCreatorHttpServletResponse aResponseHandler)
Main handling method
|
void |
onRequest(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.http.EHttpVersion eHttpVersion,
com.helger.commons.http.EHttpMethod eHttpMethod,
com.helger.web.scope.IRequestWebScope aRequestScope) |
void |
onServletInit(com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) |
public static final String SERVLET_INIT_PARAM_AS2_SERVLET_CONFIG_FILENAME
@Nonnull @OverrideOnDemand protected abstract com.helger.as2lib.session.AS2Session createAS2Session(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) throws com.helger.as2lib.exception.OpenAS2Exception, javax.servlet.ServletException
aInitParams - null.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 exceptionpublic void onServletInit(@Nonnull com.helger.commons.collection.impl.ICommonsMap<String,String> aInitParams) throws javax.servlet.ServletException
onServletInit in interface com.helger.xservlet.handler.IXServletBasicHandlerjavax.servlet.ServletException@Nonnull protected com.helger.as2lib.session.AS2Session getSession()
null.IllegalStateException - In case initialization failed@Nonnull protected com.helger.as2lib.processor.receiver.AS2ReceiverModule getReceiverModule()
null.IllegalStateException - In case initialization failed@OverrideOnDemand @OverridingMethodsMustInvokeSuper protected void handeIncomingMessage(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope, @Nonnull byte[] aMsgData, @Nonnull com.helger.as2lib.message.AS2Message aMsg, @Nonnull AS2OutputStreamCreatorHttpServletResponse aResponseHandler) throws javax.servlet.ServletException
aHttpRequest - HTTP requestaHttpResponse - HTTP responseaRequestScope - Current request scopeaMsgData - Message contentaMsg - AS2 message objectaResponseHandler - The response handler for sending back the MDNjavax.servlet.ServletException - In case of an errorpublic final void onRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHttpVersion, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod, @Nonnull com.helger.web.scope.IRequestWebScope aRequestScope) throws javax.servlet.ServletException, IOException
onRequest in interface com.helger.xservlet.handler.IXServletHandlerjavax.servlet.ServletExceptionIOExceptionCopyright © 2015–2019 Philip Helger. All rights reserved.