Package com.helger.phase4.peppol.servlet
Class Phase4PeppolAS4Servlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.helger.xservlet.AbstractXServlet
com.helger.phase4.peppol.servlet.Phase4PeppolAS4Servlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class Phase4PeppolAS4Servlet
extends com.helger.xservlet.AbstractXServlet
AS4 receiving servlet.
This servlet works only, if a single AS4 profile is present. If multiple AS4 profiles should be served, it is recommended to provide two different servlets and customize the
Use a configuration like the following in your
This servlet works only, if a single AS4 profile is present. If multiple AS4 profiles should be served, it is recommended to provide two different servlets and customize the
AS4XServletHandler accordingly. See
https://github.com/phax/phase4/wiki/Multi-Profile-Handling for a more detailed description.Use a configuration like the following in your
WEB-INF/web.xm file:
<servlet> <servlet-name>AS4Servlet</servlet-name> <servlet-class>com.helger.phase4.peppol.servlet.Phase4PeppolAS4Servlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>AS4Servlet</servlet-name> <url-pattern>/as4</url-pattern> </servlet-mapping>
- Since:
- 4.2.6
- Author:
- Philip Helger
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefaultIAS4ServletRequestHandlerCustomizerimplementation -
Field Summary
Fields inherited from class com.helger.xservlet.AbstractXServlet
REQUEST_ATTR_HANDLED_ASYNC, REQUEST_ATTR_SCOPE_CREATEDFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor usingPhase4PeppolAS4Servlet.Phase4PeppolServletRequestHandlerCustomizeras the customizer.protectedPhase4PeppolAS4Servlet(@NonNull Phase4PeppolAS4Servlet.Phase4PeppolServletRequestHandlerCustomizer aCustomizer) Custom constructor providing a custom customizer. -
Method Summary
Methods inherited from class com.helger.xservlet.AbstractXServlet
destroy, exceptionHandler, filterHighLevelList, filterLowLevelList, getServletStatusMgr, handlerRegistry, init, log, log, logInvalidRequestSetup, service, service, settings, toStringMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModifiedMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init
-
Constructor Details
-
Phase4PeppolAS4Servlet
public Phase4PeppolAS4Servlet()Default constructor usingPhase4PeppolAS4Servlet.Phase4PeppolServletRequestHandlerCustomizeras the customizer. -
Phase4PeppolAS4Servlet
protected Phase4PeppolAS4Servlet(@NonNull Phase4PeppolAS4Servlet.Phase4PeppolServletRequestHandlerCustomizer aCustomizer) Custom constructor providing a custom customizer. This is primarily intended to subclass this class.- Parameters:
aCustomizer- Request handler customizer to be used. Must not benull
-