Class RuntimeFileServlet

    • Constructor Detail

      • RuntimeFileServlet

        public RuntimeFileServlet()
    • Method Detail

      • activate

        protected void activate()
      • isEnabled

        public final boolean isEnabled()
      • getFile

        @Nullable
        protected @Nullable RuntimeFileServlet.RuntimeFile getFile​(@NotNull
                                                                   @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                                                   @Nullable
                                                                   @Nullable String suffix)
      • doGet

        protected void doGet​(@NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                             @NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                      throws IOException
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        IOException
      • downloadFile

        protected void downloadFile​(@NotNull
                                    @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                    @NotNull
                                    @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                                    @Nullable
                                    @Nullable String suffix)
                             throws IOException
        Throws:
        IOException
      • tailLogfile

        protected void tailLogfile​(@NotNull
                                   @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                   @NotNull
                                   @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                                   @NotNull
                                   @NotNull String[] selectors,
                                   @Nullable
                                   @Nullable String suffix)
                            throws IOException
        Throws:
        IOException
      • getLoggerSession

        protected RuntimeFileServlet.LoggerSession getLoggerSession​(@NotNull
                                                                    @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                                                    @Nullable
                                                                    @Nullable String path)
      • treeNode

        protected void treeNode​(@NotNull
                                @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                @NotNull
                                @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                                @Nullable
                                @Nullable String suffix)
                         throws IOException
        Throws:
        IOException
      • writeFileNode

        protected void writeFileNode​(@NotNull
                                     @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                     @NotNull
                                     @NotNull com.google.gson.stream.JsonWriter writer,
                                     @NotNull
                                     @NotNull RuntimeFileServlet.RuntimeFile rtFile)
                              throws IOException
        Throws:
        IOException
      • writeFileIdentifiers

        protected void writeFileIdentifiers​(@NotNull
                                            @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                            @NotNull
                                            @NotNull com.google.gson.stream.JsonWriter writer,
                                            @NotNull
                                            @NotNull RuntimeFileServlet.RuntimeFile rtFile)
                                     throws IOException
        Throws:
        IOException