Class ClientlibDebugConsolePlugin.Processor
- java.lang.Object
-
- com.composum.sling.clientlibs.servlet.ClientlibDebugConsolePlugin.Processor
-
- Enclosing class:
- ClientlibDebugConsolePlugin
protected class ClientlibDebugConsolePlugin.Processor extends Object
Encapsulates stuff always needed during one request, to avoid passing it on through all methods as parameters.
-
-
Constructor Summary
Constructors Constructor Description Processor(javax.servlet.http.HttpServletRequest request, String impersonation, PrintWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
displayClientlibStructure(ClientlibRef ref)
Displays the structure of one clientlib as seen from the adminResolver - it's rendered like that, anyway.protected String
normalizePath(ClientlibRef ref, ClientlibElement clientlib)
Returns the path as it would be in a clientlib reference: relative to search path or a category linkprotected void
printAllLibs()
Prints all client libraries readable for the impersonation user.protected void
printForm()
protected void
printLinkItem(String url)
protected void
printUsage()
protected void
printVerification()
-
-
-
Constructor Detail
-
Processor
public Processor(javax.servlet.http.HttpServletRequest request, String impersonation, PrintWriter writer)
-
-
Method Detail
-
printUsage
protected void printUsage()
-
printLinkItem
protected void printLinkItem(String url)
-
printForm
protected void printForm()
-
printVerification
protected void printVerification()
-
printAllLibs
protected void printAllLibs() throws javax.servlet.ServletException, IOException
Prints all client libraries readable for the impersonation user.- Throws:
javax.servlet.ServletException
IOException
-
displayClientlibStructure
protected void displayClientlibStructure(ClientlibRef ref) throws IOException, javax.servlet.ServletException
Displays the structure of one clientlib as seen from the adminResolver - it's rendered like that, anyway.- Throws:
IOException
javax.servlet.ServletException
-
normalizePath
protected String normalizePath(ClientlibRef ref, ClientlibElement clientlib)
Returns the path as it would be in a clientlib reference: relative to search path or a category link
-
-