1 23 24 package com.sun.enterprise.admin.common; 25 26 30 public class AdminResponse extends Message 31 { 32 public static long serialVersionUID = -5344053383506075415L; 33 34 public int mResultCode; 35 public String mResultString; 36 37 public AdminResponse( ) 38 { 39 mResultCode = Errors.kNoError; 40 mResultString = null; 41 } 42 43 public void setResultCode( int resultCode ) 44 { 45 mResultCode = resultCode; 46 } 47 48 public void setResultString( String resultString ) 49 { 50 mResultString = resultString; 51 } 52 53 public String toString() 54 { 55 String base = "Response: " + "error = " + mResultCode; 56 57 base = base + ", resultString = "; 58 if ( mResultString != null ) 59 base = base + mResultString; 60 else 61 base = base + "<null>"; 62 63 return( base + super.toString() ); 64 } 65 }; 66 67 | Popular Tags |