Package com.helger.photon.api.servlet
Class APIXServletHandler
- java.lang.Object
-
- com.helger.photon.api.servlet.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. UseIAPIRegistryto register API functions dynamically andIAPIInvokerto invoke them afterwards.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description APIXServletHandler()APIXServletHandler(Supplier<? extends IAPIRegistry> aRegistryFactory, Supplier<? extends IAPIInvoker> aInvokerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.photon.app.PhotonUnifiedResponsecreateUnifiedResponse(com.helger.http.EHttpVersion eHttpVersion, com.helger.commons.http.EHttpMethod eHttpMethod, jakarta.servlet.http.HttpServletRequest aHttpRequest, com.helger.web.scope.IRequestWebScope aRequestScope)voidhandleRequest(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.servlet.response.UnifiedResponse aUnifiedResponse)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
APIXServletHandler
public APIXServletHandler()
-
APIXServletHandler
public APIXServletHandler(@Nonnull Supplier<? extends IAPIRegistry> aRegistryFactory, @Nonnull Supplier<? extends IAPIInvoker> aInvokerFactory)
-
-
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:
createUnifiedResponsein interfacecom.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:
handleRequestin interfacecom.helger.xservlet.handler.simple.IXServletSimpleHandler- Throws:
Exception
-
-