Class RenderWithResourceTypeServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Deprecated
    public class RenderWithResourceTypeServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    Deprecated.
    doesn't work right yet
    Renders a resource with a given resource type. The servlet is activated by selector "debugReplaceResourceType" and renders the resource with a resourcetype given as parameter "forceResourceType". E.g. http://localhost:9090/var/composum/platform/security/credentials/composum/platform/workflow/test/mail/servers/hpssendgrid.debugReplaceResourceType.edit.dialog.html?forceResourceType=composum/platform/workflow/components/mail/mailserverconfig
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.composum.nodes.debugutil.RenderWithResourceTypeServlet.Config config
      Deprecated.
       
      static String PARAM_FORCE_RESOURCE_TYPE
      Deprecated.
      Parameter with which RequestDispatcherOptions can be given - meant to be a forced resource type to render the resource with.
      static String SELECTOR
      Deprecated.
      The selector which activates this servlet.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void doGet​(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)
      Deprecated.
       
      protected void setConfig​(com.composum.nodes.debugutil.RenderWithResourceTypeServlet.Config config)
      Deprecated.
       
      • Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet

        doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
    • Field Detail

      • config

        protected com.composum.nodes.debugutil.RenderWithResourceTypeServlet.Config config
        Deprecated.
      • PARAM_FORCE_RESOURCE_TYPE

        public static final String PARAM_FORCE_RESOURCE_TYPE
        Deprecated.
        Parameter with which RequestDispatcherOptions can be given - meant to be a forced resource type to render the resource with.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RenderWithResourceTypeServlet

        public RenderWithResourceTypeServlet()
        Deprecated.
    • Method Detail

      • doGet

        protected void doGet​(org.apache.sling.api.SlingHttpServletRequest request,
                             org.apache.sling.api.SlingHttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Deprecated.
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • setConfig

        protected void setConfig​(com.composum.nodes.debugutil.RenderWithResourceTypeServlet.Config config)
        Deprecated.