Class WebComponentRequestRouter<T extends WebComponentController<R>,​R extends WebComponentRequestContext<? extends WebComponentController<R>>>

  • Type Parameters:
    T - the type of the Component Session Controller that provides a lot of stuff around the component, the user, etc.
    R - the type of the web component context.
    All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public final class WebComponentRequestRouter<T extends WebComponentController<R>,​R extends WebComponentRequestContext<? extends WebComponentController<R>>>
    extends ComponentRequestRouter<T>
    This request router is an extension of the historical one. It provides a new way to perform the requests on the server, especially by annoting methods that must be invoked.
    See Also:
    Serialized Form
    • Constructor Detail

      • WebComponentRequestRouter

        public WebComponentRequestRouter()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • doPut

        protected void doPut​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
        Overrides:
        doPut in class javax.servlet.http.HttpServlet
      • doDelete

        protected void doDelete​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
        Overrides:
        doDelete in class javax.servlet.http.HttpServlet
      • getDestination

        public final String getDestination​(String path,
                                           T componentSC,
                                           HttpRequest request)
        Description copied from class: ComponentRequestRouter
        This method has to be implemented by the component request Router it has to compute a destination page
        Specified by:
        getDestination in class ComponentRequestRouter<T extends WebComponentController<R>>
        Parameters:
        path - The entering request function (ex : "Main.jsp", when accessing "http://localhost/webactiv/Ralmanach/jsp/Main.jsp")
        componentSC - The component Session Controller, build and initialised.
        request - The entering request. The request Router need it to get parameters
        Returns:
        The complete destination URL for a forward (ex : "/almanach/jsp/almanach.jsp?flag=user")