Class RemoteCommandSession


  • public class RemoteCommandSession
    extends Object
    This delegating class is used to overcome some limitations of the CommandSession interface when it comes to session management.

    Once implementations are mature enough to not assume environmental behavior this class will become obsolete.

    Author:
    ancoron
    • Constructor Detail

      • RemoteCommandSession

        public RemoteCommandSession​(org.apache.felix.service.command.CommandSession delegate)
    • Method Detail

      • getId

        public String getId()
        Get the identifier for this session, which is a UUID of type 4.
        Returns:
      • attach

        public org.apache.felix.service.command.CommandSession attach​(InputStream in,
                                                                      PrintStream out,
                                                                      PrintStream err)
        Attached the specified streams to the delegate of this instance and returns the modified delegate.
        Parameters:
        in - The "stdin" stream for the session
        out - The "stdout" stream for the session
        err - The "stderr" stream for the session
        Returns:
        The modified CommandSession delegate
        See Also:
        detach()