1 23 24 28 29 package com.sun.enterprise.admin.util.proxy; 30 31 34 public class CallState { 35 public static final CallState IN_PROCESS = new CallState("Processing"); 36 public static final CallState FAILED = new CallState("Failed"); 37 public static final CallState SUCCESS = new CallState("Success"); 38 39 private String callState; 40 41 42 private CallState() { 43 } 44 45 private CallState(String state) { 46 callState = state; 47 } 48 49 public boolean isFinished() { 50 return (this != IN_PROCESS); 51 } 52 53 public boolean isSuccess() { 54 return (this == SUCCESS); 55 } 56 57 public boolean isFailed() { 58 return (this == FAILED); 59 } 60 61 public String toString() { 62 return callState; 63 } 64 } 65 | Popular Tags |