Class SshResponse

  • All Implemented Interfaces:
    SshMessage

    public class SshResponse
    extends Object
    implements SshMessage
    POJO encapsulate a SSH response. It is immutable.
    Since:
    1.3
    Author:
    Roland Huss
    • Field Detail

      • stdout

        protected String stdout
      • stderr

        protected String stderr
      • exit

        protected int exit
    • Constructor Detail

      • SshResponse

        public SshResponse()
        Default constructor.
      • SshResponse

        public SshResponse​(String pStdout,
                           String pStderr,
                           int pExit)
        Default constructor using fields.
        Parameters:
        pStdout -
        pStderr -
        pExit -
    • Method Detail

      • getStdout

        public String getStdout()
        Gets the stdout.
        Returns:
        the stdout the stdout to get.
      • getStderr

        public String getStderr()
        Gets the stderr.
        Returns:
        the stderr the stderr to get.
      • getExit

        public int getExit()
        Gets the exit.
        Returns:
        the exit the exit to get.