public int getIntProp(Prop.Names prop) throws CommandExecutionException {
        String value = getSingleProp(prop);
        if (value.equals("")) throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        try {
            return Integer.valueOf(value);
        } catch (Exception e){
            throw new CommandExecutionException(CommandExecutionException.Error.INVALID_RESPONSE);
        }
    }
public int getIntProp ( Prop . Names prop ) throws CommandExecutionException { String value = getSingleProp ( prop ) ; if ( value . equals ( "" ) ) throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; try { return Integer . valueOf ( value ) ; } catch ( Exception e ) { throw new CommandExecutionException ( CommandExecutionException . Error . INVALID_RESPONSE ) ; } }
Get a single property value and try to convert it to an int.
@param prop The property to get.
@return The value of the specified property name.
@throws CommandExecutionException When there has been a error during the communication or the response was invalid.