org.crsh.shell
Class ShellResponse
java.lang.Object
org.crsh.shell.ShellResponse
- Direct Known Subclasses:
- ShellResponse.Cancelled, ShellResponse.Close, ShellResponse.Error, ShellResponse.NoCommand, ShellResponse.Ok, ShellResponse.UnknownCommand
public abstract class ShellResponse
- extends Object
The response of a shell invocation.
- Version:
- $Revision$
- Author:
- Julien Viet
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()
display
public static ShellResponse.Display display(String text)
display
public static ShellResponse.Display display(Iterable<?> produced,
String text)
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()
getText
public abstract String getText()
Copyright © 2012 eXo Platform SAS. All Rights Reserved.