Class APIXServletHandler

  • All Implemented Interfaces:
    com.helger.xservlet.handler.IXServletBasicHandler, com.helger.xservlet.handler.simple.IXServletSimpleHandler

    public class APIXServletHandler
    extends Object
    implements com.helger.xservlet.handler.simple.IXServletSimpleHandler
    Abstract API servlet. Use IAPIRegistry to register API functions dynamically and IAPIInvoker to invoke them afterwards.
    Author:
    Philip Helger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.helger.photon.app.PhotonUnifiedResponse createUnifiedResponse​(com.helger.http.EHttpVersion eHttpVersion, com.helger.commons.http.EHttpMethod eHttpMethod, jakarta.servlet.http.HttpServletRequest aHttpRequest, com.helger.web.scope.IRequestWebScope aRequestScope)  
      void handleRequest​(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.servlet.response.UnifiedResponse aUnifiedResponse)  
      • Methods inherited from interface com.helger.xservlet.handler.IXServletBasicHandler

        onServletDestroy, onServletInit
      • Methods inherited from interface com.helger.xservlet.handler.simple.IXServletSimpleHandler

        getLastModificationDateTime, getSupportedETag, initRequestState, onException, onRequestBegin, onRequestEnd
    • Method Detail

      • createUnifiedResponse

        @Nonnull
        public com.helger.photon.app.PhotonUnifiedResponse createUnifiedResponse​(@Nonnull
                                                                                 com.helger.http.EHttpVersion eHttpVersion,
                                                                                 @Nonnull
                                                                                 com.helger.commons.http.EHttpMethod eHttpMethod,
                                                                                 @Nonnull
                                                                                 jakarta.servlet.http.HttpServletRequest aHttpRequest,
                                                                                 @Nonnull
                                                                                 com.helger.web.scope.IRequestWebScope aRequestScope)
        Specified by:
        createUnifiedResponse in interface com.helger.xservlet.handler.simple.IXServletSimpleHandler
      • handleRequest

        public void handleRequest​(@Nonnull
                                  com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope,
                                  @Nonnull
                                  com.helger.servlet.response.UnifiedResponse aUnifiedResponse)
                           throws Exception
        Specified by:
        handleRequest in interface com.helger.xservlet.handler.simple.IXServletSimpleHandler
        Throws:
        Exception