com.sun.enterprise.universal.glassfish
Class AdminCommandResponse

java.lang.Object
  extended by com.sun.enterprise.universal.glassfish.AdminCommandResponse

public class AdminCommandResponse
extends Object

Wraps the Manifest object returned by the Server. The Manifest object has an internally defined format over and above the Manifest itself. This is a central place where we are aware of all the details so that callers don't have to be. If the format changes or the returned Object type changes then this class will be the thing to change.

Author:
bnevins

Field Summary
static String CHILDREN_TYPE
           
static String EXITCODE
           
static String FAILURE
           
static String GENERATED_HELP
           
static String MANPAGE
           
static String MESSAGE
           
static String SUCCESS
           
static String SYNOPSIS
           
static String WARNING
           
 
Constructor Summary
AdminCommandResponse(InputStream inStream)
           
 
Method Summary
 String getCause()
           
 Map<String,Map<String,String>> getChildren(Map<String,String> map)
           
 List<NameValue<String,String>> getKeys(Map<String,String> map)
           
 Map<String,String> getMainAtts()
           
 List<NameValue<String,String>> getMainKeys()
           
 String getMainMessage()
           
 String getValue(String key)
           
 boolean isGeneratedHelp()
           
 boolean wasFailure()
           
 boolean wasSuccess()
           
 boolean wasWarning()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATED_HELP

public static final String GENERATED_HELP
See Also:
Constant Field Values

MANPAGE

public static final String MANPAGE
See Also:
Constant Field Values

SYNOPSIS

public static final String SYNOPSIS
See Also:
Constant Field Values

MESSAGE

public static final String MESSAGE
See Also:
Constant Field Values

CHILDREN_TYPE

public static final String CHILDREN_TYPE
See Also:
Constant Field Values

EXITCODE

public static final String EXITCODE
See Also:
Constant Field Values

SUCCESS

public static final String SUCCESS
See Also:
Constant Field Values

WARNING

public static final String WARNING
See Also:
Constant Field Values

FAILURE

public static final String FAILURE
See Also:
Constant Field Values
Constructor Detail

AdminCommandResponse

public AdminCommandResponse(InputStream inStream)
                     throws IOException
Throws:
IOException
Method Detail

isGeneratedHelp

public boolean isGeneratedHelp()

getMainMessage

public String getMainMessage()

wasSuccess

public boolean wasSuccess()

wasWarning

public boolean wasWarning()

wasFailure

public boolean wasFailure()

getCause

public String getCause()

getMainAtts

public Map<String,String> getMainAtts()

getMainKeys

public List<NameValue<String,String>> getMainKeys()

getValue

public String getValue(String key)

getKeys

public List<NameValue<String,String>> getKeys(Map<String,String> map)

getChildren

public Map<String,Map<String,String>> getChildren(Map<String,String> map)


Copyright © 2012 GlassFish Community. All Rights Reserved.