Re: Securing the /deploy folder.

2018-03-12 Thread jonathanknez
Thank you JB. You have given us some things to look into. For future generations, the full name of the ArtifactInstaller interface is org.apache.felix.fileinstall.ArtifactInstaller. And here is a page that describes how a jar can be signed, https://docs.oracle.com/javase/7/docs/technotes/tools/win

service to list all Karaf commands?

2018-03-12 Thread Max Spring
I want to implement the ability to execute my own Karaf commands from my own UI. How can I list all command classes at runtime? Thanks! -Max

Re: how to enable alias resolution in Jetty in Karaf?

2018-03-12 Thread Max Spring
(Re-sending it due to copy/paste screw up in my earlier reply.) I ended up implementing this by resolving symlinks and using an HttpServletRequestWrapper. public class FileServlet extends DefaultServlet{ //Bean init-method public void initBasePath() { basePath =

Re: how to enable alias resolution in Jetty in Karaf?

2018-03-12 Thread Max Spring
I ended up implementing this via a ContainerRequestFilter: package org.example.filters; import org.example.engine.Engine; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.core.Response; import j

Re: service to list all Karaf commands?

2018-03-12 Thread Francois Papon
Hi Max, What do you mean by your own UI from ? It's a terminal or a webUI ? You are using a custom distribution of Karaf ? François Le 13/03/2018 à 04:05, Max Spring a écrit : > I want to implement the ability to execute my own Karaf commands from > my own UI. > How can I list all command class

Re: service to list all Karaf commands?

2018-03-12 Thread Max Spring
Hi François, my own UI is a Web UI sitting on top of my own REST service. The UI part is actually not important for what I want to do. In essence, I want a programmatic way of listing all Karaf commands. Then I'll filter out just "my" Karaf commands (which implement my own interface in addition

Re: service to list all Karaf commands?

2018-03-12 Thread Francois Papon
Ok, For Karaf 4.1.x, there is some example made by Jean-Baptiste for helping to develop on Karaf. Here the command example : https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-command-example You can find others examples : https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples