org.crsh.shell
Class ShellResponse

java.lang.Object
  extended by org.crsh.shell.ShellResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ShellResponse.Cancelled, ShellResponse.Close, ShellResponse.Error, ShellResponse.NoCommand, ShellResponse.Ok, ShellResponse.UnknownCommand

public abstract class ShellResponse
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class ShellResponse.Cancelled
           
static class ShellResponse.Close
           
static class ShellResponse.Error
           
static class ShellResponse.NoCommand
           
static class ShellResponse.Ok
          Command execution is terminated.
static class ShellResponse.UnknownCommand
           
 
Constructor Summary
ShellResponse()
           
 
Method Summary
static ShellResponse.Cancelled cancelled()
           
static ShellResponse.Close close()
           
static ShellResponse.Error error(ErrorKind type, String msg)
           
static ShellResponse.Error error(ErrorKind type, String msg, Throwable throwable)
           
static ShellResponse.Error evalError(String msg)
           
static ShellResponse.Error evalError(String msg, Throwable throwable)
           
abstract  String getMessage()
           
static ShellResponse.Error internalError(String msg)
           
static ShellResponse.Error internalError(String msg, Throwable throwable)
           
static ShellResponse.NoCommand noCommand()
           
static ShellResponse.Ok ok()
           
static ShellResponse.Ok ok(Iterable<?> produced)
           
static ShellResponse.UnknownCommand unknownCommand(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellResponse

public ShellResponse()
Method Detail

unknownCommand

public static ShellResponse.UnknownCommand unknownCommand(String name)

noCommand

public static ShellResponse.NoCommand noCommand()

ok

public static ShellResponse.Ok ok(Iterable<?> produced)

ok

public static ShellResponse.Ok ok()

evalError

public static ShellResponse.Error evalError(String msg,
                                            Throwable throwable)

evalError

public static ShellResponse.Error evalError(String msg)

internalError

public static ShellResponse.Error internalError(String msg,
                                                Throwable throwable)

internalError

public static ShellResponse.Error internalError(String msg)

error

public static ShellResponse.Error error(ErrorKind type,
                                        String msg,
                                        Throwable throwable)

error

public static ShellResponse.Error error(ErrorKind type,
                                        String msg)

cancelled

public static ShellResponse.Cancelled cancelled()

close

public static ShellResponse.Close close()

getMessage

public abstract String getMessage()


Copyright © 2015 eXo Platform SAS. All Rights Reserved.