FileDocCategorySizeDatePackage
AdminResponse.javaAPI DocGlassfish v2 API2825Fri May 04 22:33:16 BST 2007com.sun.enterprise.admin.common

AdminResponse

public class AdminResponse extends Message
A Response is a generic reply to a Request. It incorporates a result code and a result string.

Fields Summary
public static long
serialVersionUID
public int
mResultCode
public String
mResultString
Constructors Summary
public AdminResponse()


	  
	
		mResultCode         = Errors.kNoError;
		mResultString        = null;
	
Methods Summary
public voidsetResultCode(int resultCode)

		mResultCode	= resultCode;
	
public voidsetResultString(java.lang.String resultString)

		mResultString	= resultString;
	
public java.lang.StringtoString()

		String	base	= "Response: " + "error = " + mResultCode;

		base = base + ", resultString = ";
		if ( mResultString != null )
			base = base + mResultString;
		else
			base	= base + "<null>";

		return( base + super.toString() );