Class Shell

java.lang.Object
org.apache.felix.gogo.shell.Shell

public class Shell extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final URI
     
    private final org.osgi.framework.BundleContext
     
    private static final URI
     
    (package private) static final String[]
     
    private final History
     
    private final org.apache.felix.service.command.CommandProcessor
     
    private org.osgi.framework.Bundle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Shell(org.osgi.framework.BundleContext context, org.apache.felix.service.command.CommandProcessor processor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private Object
    console(org.apache.felix.service.command.CommandSession session)
     
    (package private) static URI
    cwd(org.apache.felix.service.command.CommandSession session)
     
    (package private) static Set<String>
    getVariables(org.apache.felix.service.command.CommandSession session)
     
    gosh(org.apache.felix.service.command.CommandSession session, String[] argv)
     
     
    private CharSequence
    readScript(URI script)
     
    sh(org.apache.felix.service.command.CommandSession session, String[] argv)
     
    private void
     
    source(org.apache.felix.service.command.CommandSession session, String script)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • functions

      static final String[] functions
    • CWD

      private static final URI CWD
    • baseURI

      private final URI baseURI
    • context

      private final org.osgi.framework.BundleContext context
    • processor

      private final org.apache.felix.service.command.CommandProcessor processor
    • history

      private final History history
    • systemBundle

      private volatile org.osgi.framework.Bundle systemBundle
  • Constructor Details

    • Shell

      public Shell(org.osgi.framework.BundleContext context, org.apache.felix.service.command.CommandProcessor processor)
  • Method Details

    • gosh

      public Object gosh(org.apache.felix.service.command.CommandSession session, String[] argv) throws Exception
      Throws:
      Exception
    • sh

      public Object sh(org.apache.felix.service.command.CommandSession session, String[] argv) throws Exception
      Throws:
      Exception
    • shutdown

      private void shutdown() throws org.osgi.framework.BundleException
      Throws:
      org.osgi.framework.BundleException
    • source

      public Object source(org.apache.felix.service.command.CommandSession session, String script) throws Exception
      Throws:
      Exception
    • console

      private Object console(org.apache.felix.service.command.CommandSession session)
    • readScript

      private CharSequence readScript(URI script) throws Exception
      Throws:
      Exception
    • getVariables

      static Set<String> getVariables(org.apache.felix.service.command.CommandSession session)
    • cwd

      static URI cwd(org.apache.felix.service.command.CommandSession session)
    • history

      public String[] history()