org.crsh.shell
Class ShellResponse
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShellResponse
public ShellResponse()
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(ErrorType type,
String msg,
Throwable throwable)
error
public static ShellResponse.Error error(ErrorType type,
String msg)
cancelled
public static ShellResponse.Cancelled cancelled()
close
public static ShellResponse.Close close()
getMessage
public abstract String getMessage()
Copyright © 2014 eXo Platform SAS. All Rights Reserved.